ToCell

Trait ToCell 

Source
pub trait ToCell: ToCellSealed {
    // Required method
    fn to_cell(self) -> Vec<u8> ;
}
Expand description

Trait used to encode strings as cells in a NELF list.

Already implemented for the most commonly used types, sealed.

Required Methods§

Source

fn to_cell(self) -> Vec<u8>

Encodes the value as a NELF cell.

Implementations on Foreign Types§

Source§

impl ToCell for &Vec<u8>

Source§

fn to_cell(self) -> Vec<u8>

Source§

impl ToCell for &[u8]

Source§

fn to_cell(self) -> Vec<u8>

Source§

impl ToCell for Vec<u8>

Source§

fn to_cell(self) -> Vec<u8>

Source§

impl<const N: usize> ToCell for &[u8; N]

Source§

fn to_cell(self) -> Vec<u8>

Source§

impl<const N: usize> ToCell for [u8; N]

Source§

fn to_cell(self) -> Vec<u8>

Implementors§