pub struct CellSlice {
pub cell: ArcCell,
pub start_bit: usize,
pub end_bit: usize,
pub start_ref: usize,
pub end_ref: usize,
}
Fields§
§cell: ArcCell
§start_bit: usize
§end_bit: usize
§start_ref: usize
§end_ref: usize
Implementations§
Source§impl CellSlice
impl CellSlice
pub fn new( cell: &ArcCell, start_bit: usize, end_bit: usize, start_ref: usize, end_ref: usize, ) -> Result<CellSlice, TonCellError>
pub fn new_with_offset( cell: &Cell, offset: usize, ) -> Result<CellSlice, TonCellError>
pub fn full_cell(cell: Cell) -> Result<CellSlice, TonCellError>
pub fn reference(&self, idx: usize) -> Result<&ArcCell, TonCellError>
Sourcepub fn into_cell(&self) -> Result<Cell, TonCellError>
pub fn into_cell(&self) -> Result<Cell, TonCellError>
Converts the slice to full Cell
dropping references to original cell.
Trait Implementations§
impl StructuralPartialEq for CellSlice
Auto Trait Implementations§
impl Freeze for CellSlice
impl RefUnwindSafe for CellSlice
impl Send for CellSlice
impl Sync for CellSlice
impl Unpin for CellSlice
impl UnwindSafe for CellSlice
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