pub struct Value<T>(/* private fields */);Expand description
Value whose stable extent fits a signed 32-bit count.
Admission requires an extent stable through shared access.
Implementations§
Source§impl<T> Value<T>
impl<T> Value<T>
Sourcepub fn into_storage<U>(self) -> Value<U>where
T: Convert<U>,
pub fn into_storage<U>(self) -> Value<U>where
T: Convert<U>,
Transfers storage while preserving its admitted extent.
Sourcepub fn from_raw(proof: Input<T>) -> Self
pub fn from_raw(proof: Input<T>) -> Self
Seals the original producer’s extent proof into its bytes.
pub fn into_inner(self) -> T
Trait Implementations§
impl Mutable for Value<Unique<'_>>
impl Mutable for Value<Prefix<'_, '_>>
Source§fn try_retain<'a>(
plan: &Self::View<'a>,
budget: &Budget<'d>,
) -> Result<Retained<'d>, Error>where
Self: 'a,
fn try_retain<'a>(
plan: &Self::View<'a>,
budget: &Budget<'d>,
) -> Result<Retained<'d>, Error>where
Self: 'a,
Retains this admitted extent with its original account and borrow domain.
impl<T: Source> Source for Value<Prefix<'_, '_, T>>
impl Split for Value<Prefix<'_, '_>>
Source§impl<T: Store> Store for Value<T>
impl<T: Store> Store for Value<T>
Source§fn empty() -> Option<Self>
fn empty() -> Option<Self>
Returns a canonical empty owner, or
None to restrict the current owner
according to its own empty-storage policy.
A returned owner must expose no bytes and require no allocation.Source§fn restrict(slice: Slice<'_, '_, Self>)
fn restrict(slice: Slice<'_, '_, Self>)
Applies the selected extent. Nonempty selections must retain their original
backing; empty selections preserve this owner’s empty-storage policy.
fn advance<const MAX: u32>(prefix: Consumed<'_, '_, Self, MAX>)
fn advance_max(&mut self, max: usize) -> usizewhere
Self: Source,
fn project(slice: Slice<'_, '_, Self>)
Auto Trait Implementations§
impl<T> Forget for Value<T>
impl<T> Freeze for Value<T>where
T: Freeze,
impl<T> RefUnwindSafe for Value<T>where
T: RefUnwindSafe,
impl<T> Send for Value<T>where
T: Send,
impl<T> Sync for Value<T>where
T: Sync,
impl<T> Unpin for Value<T>where
T: Unpin,
impl<T> UnsafeUnpin for Value<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for Value<T>where
T: UnwindSafe,
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