pub struct Cell { /* private fields */ }
Implementations§
Source§impl Cell
impl Cell
pub fn new( data: Vec<u8>, bit_len: usize, references: Vec<ArcCell>, is_exotic: bool, ) -> Result<Self, TonCellError>
pub fn parser(&self) -> CellParser<'_>
pub fn parse<F, T>(&self, parse: F) -> Result<T, TonCellError>
pub fn parse_fully<F, T>(&self, parse: F) -> Result<T, TonCellError>
pub fn reference(&self, idx: usize) -> Result<&ArcCell, TonCellError>
pub fn data(&self) -> &[u8] ⓘ
pub fn bit_len(&self) -> usize
pub fn references(&self) -> &[ArcCell]
pub fn cell_depth(&self) -> u16
pub fn get_depth(&self, level: u8) -> u16
pub fn cell_hash(&self) -> TonHash
pub fn get_hash(&self, level: u8) -> TonHash
pub fn is_exotic(&self) -> bool
pub fn is_library(&self) -> bool
pub fn cell_hash_base64(&self) -> String
pub fn load_snake_formatted_string(&self) -> Result<String, TonCellError>
pub fn to_arc(self) -> ArcCell
Sourcepub fn expect_reference_count(
&self,
expected_refs: usize,
) -> Result<(), TonCellError>
👎Deprecated
pub fn expect_reference_count( &self, expected_refs: usize, ) -> Result<(), TonCellError>
It is recommended to use CellParser::next_reference() instead
Trait Implementations§
Source§impl TonMessage for Cell
impl TonMessage for Cell
Source§impl TryFrom<Cell> for WalletDataHighloadV2R2
impl TryFrom<Cell> for WalletDataHighloadV2R2
Source§impl TryFrom<Cell> for WalletDataV1V2
impl TryFrom<Cell> for WalletDataV1V2
Source§impl TryFrom<Cell> for WalletDataV3
impl TryFrom<Cell> for WalletDataV3
Source§impl TryFrom<Cell> for WalletDataV4
impl TryFrom<Cell> for WalletDataV4
Source§impl TryFrom<Cell> for WalletDataV5
impl TryFrom<Cell> for WalletDataV5
Source§impl TryFrom<WalletDataHighloadV2R2> for Cell
impl TryFrom<WalletDataHighloadV2R2> for Cell
Source§type Error = TonCellError
type Error = TonCellError
The type returned in the event of a conversion error.
Source§impl TryFrom<WalletDataV1V2> for Cell
impl TryFrom<WalletDataV1V2> for Cell
Source§type Error = TonCellError
type Error = TonCellError
The type returned in the event of a conversion error.
Source§impl TryFrom<WalletDataV3> for Cell
impl TryFrom<WalletDataV3> for Cell
Source§type Error = TonCellError
type Error = TonCellError
The type returned in the event of a conversion error.
Source§impl TryFrom<WalletDataV4> for Cell
impl TryFrom<WalletDataV4> for Cell
Source§type Error = TonCellError
type Error = TonCellError
The type returned in the event of a conversion error.
Source§impl TryFrom<WalletDataV5> for Cell
impl TryFrom<WalletDataV5> for Cell
Source§type Error = TonCellError
type Error = TonCellError
The type returned in the event of a conversion error.
impl Eq for Cell
impl StructuralPartialEq for Cell
Auto Trait Implementations§
impl Freeze for Cell
impl RefUnwindSafe for Cell
impl Send for Cell
impl Sync for Cell
impl Unpin for Cell
impl UnwindSafe for Cell
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more