pub struct OwnedCellSlice(/* private fields */);Expand description
A wrapper around CellSliceParts extending its lifetime.
Implementations§
Source§impl OwnedCellSlice
impl OwnedCellSlice
pub fn new_allow_exotic(cell: Cell) -> Self
pub fn apply(&self) -> CellSlice<'_>
pub fn range(&self) -> CellSliceRange
pub fn range_mut(&mut self) -> &mut CellSliceRange
pub fn cell(&self) -> &Cell
pub fn set_range(&mut self, range: CellSliceRange)
pub fn fits_into(&self, builder: &CellBuilder) -> bool
Trait Implementations§
Source§impl Clone for OwnedCellSlice
impl Clone for OwnedCellSlice
Source§fn clone(&self) -> OwnedCellSlice
fn clone(&self) -> OwnedCellSlice
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for OwnedCellSlice
impl Debug for OwnedCellSlice
Source§impl Default for OwnedCellSlice
impl Default for OwnedCellSlice
Source§fn default() -> OwnedCellSlice
fn default() -> OwnedCellSlice
Returns the “default value” for a type. Read more
Source§impl Display for OwnedCellSlice
impl Display for OwnedCellSlice
Source§impl From<(CellSliceRange, Cell)> for OwnedCellSlice
impl From<(CellSliceRange, Cell)> for OwnedCellSlice
Source§fn from(parts: CellSliceParts) -> Self
fn from(parts: CellSliceParts) -> Self
Converts to this type from the input type.
Source§impl From<OwnedCellSlice> for CellSliceParts
impl From<OwnedCellSlice> for CellSliceParts
Source§fn from(value: OwnedCellSlice) -> Self
fn from(value: OwnedCellSlice) -> Self
Converts to this type from the input type.
Source§impl IntoCode for OwnedCellSlice
impl IntoCode for OwnedCellSlice
Source§impl PartialEq<CellSlice<'_>> for OwnedCellSlice
impl PartialEq<CellSlice<'_>> for OwnedCellSlice
Source§impl SafeRcMakeMut for OwnedCellSlice
impl SafeRcMakeMut for OwnedCellSlice
fn rc_make_mut(rc: &mut Rc<Self>) -> &mut Self
Source§impl StackValue for OwnedCellSlice
impl StackValue for OwnedCellSlice
fn rc_into_dyn(self: Rc<Self>) -> Rc<dyn StackValue>
fn raw_ty(&self) -> u8
fn store_as_stack_value( &self, builder: &mut CellBuilder, _: &dyn CellContext, ) -> Result<(), Error>
fn fmt_dump(&self, f: &mut Formatter<'_>) -> Result
fn as_cell_slice(&self) -> Option<&OwnedCellSlice>
fn rc_into_cell_slice(self: Rc<Self>) -> VmResult<Rc<OwnedCellSlice>>
fn as_int(&self) -> Option<&BigInt>
fn try_as_int(&self) -> VmResult<&BigInt>
fn rc_into_int(self: Rc<Self>) -> VmResult<Rc<BigInt>>
fn as_cell(&self) -> Option<&Cell>
fn try_as_cell(&self) -> VmResult<&Cell>
fn rc_into_cell(self: Rc<Self>) -> VmResult<Rc<Cell>>
fn try_as_cell_slice(&self) -> VmResult<&OwnedCellSlice>
fn as_cell_builder(&self) -> Option<&CellBuilder>
fn try_as_cell_builder(&self) -> VmResult<&CellBuilder>
fn rc_into_cell_builder(self: Rc<Self>) -> VmResult<Rc<CellBuilder>>
fn as_cont(&self) -> Option<&dyn Cont>
fn try_as_cont(&self) -> VmResult<&dyn Cont>
fn rc_into_cont(self: Rc<Self>) -> VmResult<Rc<dyn Cont>>
fn as_tuple(&self) -> Option<&[RcStackValue]>
fn try_as_tuple(&self) -> VmResult<&[RcStackValue]>
fn rc_into_tuple(self: Rc<Self>) -> VmResult<Rc<Tuple>>
Source§impl StaticStackValue for OwnedCellSlice
impl StaticStackValue for OwnedCellSlice
type DynRef<'a> = &'a OwnedCellSlice
fn known_ty() -> StackValueType
fn from_dyn(value: Rc<dyn StackValue>) -> VmResult<Rc<Self>>
fn from_dyn_ref(value: &dyn StackValue) -> VmResult<Self::DynRef<'_>>
Auto Trait Implementations§
impl Freeze for OwnedCellSlice
impl !RefUnwindSafe for OwnedCellSlice
impl !Send for OwnedCellSlice
impl !Sync for OwnedCellSlice
impl Unpin for OwnedCellSlice
impl UnsafeUnpin for OwnedCellSlice
impl !UnwindSafe for OwnedCellSlice
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