pub fn encode(tokens: &[Token]) -> Bytes {
	let mediates = &tokens.iter().map(encode_token).collect::<Vec<_>>();

	encode_head_tail(mediates).iter().flat_map(|word| word.to_vec()).collect()
}
/// Encodes vector of tokens into ABI compliant vector of bytes.
Encodes vector of tokens into ABI compliant vector of bytes.
Encodes vector of tokens into ABI compliant vector of bytes .
pub fn encode(tokens: &[Token]) -> Bytes {
	let mediates = &tokens.iter().map(encode_token).collect::<Vec<_>>();
	encode_head_tail(mediates).iter().flat_map(|word| word.to_vec()).collect()
}
pub fn encode ( tokens : & [ Token ] ) -> Bytes { let mediates = & tokens . iter ( ) . map ( encode_token ) . collect :: < Vec < _ > > ( ) ; encode_head_tail ( mediates ) . iter ( ) . flat_map ( | word | word . to_vec ( ) ) . collect ( ) }
Encodes vector of tokens into ABI compliant vector of bytes.
Encodes vector of tokens into ABI compliant vector of bytes .
tokens
&[Token]