#[repr(transparent)]pub struct FrozenLib<B = [u8]>where
B: ?Sized,{
pub bytes: B,
}
Fields§
§bytes: B
Implementations§
Source§impl FrozenLib<Vec<u8>>
impl FrozenLib<Vec<u8>>
Sourcepub fn encode<'a, I, B>(lib: I) -> FrozenLib<Vec<u8>>where
B: AsRef<[u8]>,
I: IntoIterator<Item = (&'a str, FrozenModule<B>)>,
<I as IntoIterator>::IntoIter: ExactSizeIterator + Clone,
pub fn encode<'a, I, B>(lib: I) -> FrozenLib<Vec<u8>>where
B: AsRef<[u8]>,
I: IntoIterator<Item = (&'a str, FrozenModule<B>)>,
<I as IntoIterator>::IntoIter: ExactSizeIterator + Clone,
Encode the given iterator of frozen modules into a compressed vector of bytes
Trait Implementations§
Source§impl<'a, B> IntoIterator for &'a FrozenLib<B>
impl<'a, B> IntoIterator for &'a FrozenLib<B>
Source§type IntoIter = FrozenModulesIter<'a>
type IntoIter = FrozenModulesIter<'a>
Which kind of iterator are we turning this into?
Auto Trait Implementations§
impl<B> Freeze for FrozenLib<B>
impl<B> RefUnwindSafe for FrozenLib<B>where
B: RefUnwindSafe + ?Sized,
impl<B> Send for FrozenLib<B>
impl<B> Sync for FrozenLib<B>
impl<B> Unpin for FrozenLib<B>
impl<B> UnwindSafe for FrozenLib<B>where
B: UnwindSafe + ?Sized,
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> 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