pub struct FrozenCodeObject<B> {
pub bytes: B,
}
Fields§
§bytes: B
Implementations§
Source§impl<B> FrozenCodeObject<B>
impl<B> FrozenCodeObject<B>
Sourcepub fn decode<Bag>(
&self,
bag: Bag,
) -> CodeObject<<<Bag as AsBag>::Bag as ConstantBag>::Constant>where
Bag: AsBag,
pub fn decode<Bag>(
&self,
bag: Bag,
) -> CodeObject<<<Bag as AsBag>::Bag as ConstantBag>::Constant>where
Bag: AsBag,
Decode a frozen code object
Source§impl FrozenCodeObject<Vec<u8>>
impl FrozenCodeObject<Vec<u8>>
pub fn encode<C>(code: &CodeObject<C>) -> FrozenCodeObject<Vec<u8>>where
C: Constant,
Trait Implementations§
Source§impl<B> Clone for FrozenCodeObject<B>where
B: Clone,
impl<B> Clone for FrozenCodeObject<B>where
B: Clone,
Source§fn clone(&self) -> FrozenCodeObject<B>
fn clone(&self) -> FrozenCodeObject<B>
Returns a copy 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 moreimpl<B> Copy for FrozenCodeObject<B>where
B: Copy,
Auto Trait Implementations§
impl<B> Freeze for FrozenCodeObject<B>where
B: Freeze,
impl<B> RefUnwindSafe for FrozenCodeObject<B>where
B: RefUnwindSafe,
impl<B> Send for FrozenCodeObject<B>where
B: Send,
impl<B> Sync for FrozenCodeObject<B>where
B: Sync,
impl<B> Unpin for FrozenCodeObject<B>where
B: Unpin,
impl<B> UnwindSafe for FrozenCodeObject<B>where
B: 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more