pub struct BagOfCells {
pub roots: Vec<ArcCell>,
}
Fields§
§roots: Vec<ArcCell>
Implementations§
Source§impl BagOfCells
impl BagOfCells
pub fn new(roots: &[ArcCell]) -> BagOfCells
pub fn from_root(root: Cell) -> BagOfCells
pub fn add_root(&mut self, root: Cell)
pub fn num_roots(&self) -> usize
pub fn root(&self, idx: usize) -> Result<&ArcCell, TonCellError>
pub fn single_root(self) -> Result<ArcCell, TonCellError>
pub fn parse(serial: &[u8]) -> Result<BagOfCells, TonCellError>
pub fn parse_hex(hex: &str) -> Result<BagOfCells, TonCellError>
pub fn parse_base64(base64: &str) -> Result<BagOfCells, TonCellError>
pub fn serialize(&self, has_crc32: bool) -> Result<Vec<u8>, TonCellError>
Trait Implementations§
Source§impl Clone for BagOfCells
impl Clone for BagOfCells
Source§fn clone(&self) -> BagOfCells
fn clone(&self) -> BagOfCells
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for BagOfCells
impl Debug for BagOfCells
Source§impl Hash for BagOfCells
impl Hash for BagOfCells
Source§impl PartialEq for BagOfCells
impl PartialEq for BagOfCells
impl Eq for BagOfCells
impl StructuralPartialEq for BagOfCells
Auto Trait Implementations§
impl Freeze for BagOfCells
impl RefUnwindSafe for BagOfCells
impl Send for BagOfCells
impl Sync for BagOfCells
impl Unpin for BagOfCells
impl UnwindSafe for BagOfCells
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