#[repr(transparent)]
pub struct FrozenLib<B = [u8]>where B: ?Sized,{ pub bytes: B, }

Fields§

§bytes: B

Implementations§

source§

impl<B> FrozenLib<B>where B: AsRef<[u8]> + ?Sized,

source

pub const fn from_ref(b: &B) -> &FrozenLib<B>

source

pub fn decode(&self) -> FrozenModulesIter<'_>

Decode a library to a iterable of frozen modules

source§

impl FrozenLib<Vec<u8, Global>>

source

pub fn encode<'a, I, B>(lib: I) -> FrozenLib<Vec<u8, Global>>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>where B: AsRef<[u8]> + ?Sized,

§

type Item = (&'a str, FrozenModule<&'a [u8]>)

The type of the elements being iterated over.
§

type IntoIter = FrozenModulesIter<'a>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> <&'a FrozenLib<B> as IntoIterator>::IntoIter

Creates an iterator from a value. Read more

Auto Trait Implementations§

§

impl<B: ?Sized> RefUnwindSafe for FrozenLib<B>where B: RefUnwindSafe,

§

impl<B: ?Sized> Send for FrozenLib<B>where B: Send,

§

impl<B: ?Sized> Sync for FrozenLib<B>where B: Sync,

§

impl<B: ?Sized> Unpin for FrozenLib<B>where B: Unpin,

§

impl<B: ?Sized> UnwindSafe for FrozenLib<B>where B: UnwindSafe,

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
§

impl<T, U> ExactFrom<T> for Uwhere U: TryFrom<T>,

§

fn exact_from(value: T) -> U

§

impl<T, U> ExactInto<U> for Twhere U: ExactFrom<T>,

§

fn exact_into(self) -> U

source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

§

impl<T, U> OverflowingInto<U> for Twhere U: OverflowingFrom<T>,

§

fn overflowing_into(self) -> (U, bool)

§

impl<T, U> RoundingInto<U> for Twhere U: RoundingFrom<T>,

§

fn rounding_into(self, rm: RoundingMode) -> U

source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
§

impl<T, U> SaturatingInto<U> for Twhere U: SaturatingFrom<T>,

§

fn saturating_into(self) -> U

source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T, U> WrappingInto<U> for Twhere U: WrappingFrom<T>,

§

fn wrapping_into(self) -> U

source§

impl<T> PyThreadingConstraint for T