Skip to main content

WincodeStrategy

Struct WincodeStrategy 

Source
pub struct WincodeStrategy<const ZERO_COPY: bool, C = DefaultConfig>(/* private fields */);

Trait Implementations§

Source§

impl<'a, T, C> Accessor<'a, T> for WincodeStrategy<false, C>
where C: ConfigCore, T: SchemaRead<'a, C, Dst = T> + 'a,

Source§

type Data = T

Source§

fn access(data: &'a [u8]) -> Result<Self::Data, ProgramError>

Source§

fn read(data: &mut &'a [u8]) -> Result<Self::Data, ProgramError>

Source§

impl<'a, T: 'a, C> Accessor<'a, T> for WincodeStrategy<true, C>
where C: ConfigCore, &'a T: SchemaRead<'a, C, Dst = &'a T>,

Source§

type Data = &'a T

Source§

fn access(data: &'a [u8]) -> Result<Self::Data, ProgramError>

Source§

fn read(data: &mut &'a [u8]) -> Result<Self::Data, ProgramError>

Source§

impl<'a, T: 'a, C> MutAccessor<'a, T> for WincodeStrategy<true, C>
where C: ConfigCore, &'a mut T: SchemaRead<'a, C, Dst = &'a mut T>,

Source§

type Data = &'a mut T

Source§

fn access_mut(data: &'a mut [u8]) -> Result<Self::Data, ProgramError>

Source§

impl<T, const ZERO_COPY: bool, C> Write<T> for WincodeStrategy<ZERO_COPY, C>
where C: ConfigCore, T: SchemaWrite<C, Src = T>,

Auto Trait Implementations§

§

impl<const ZERO_COPY: bool, C> Freeze for WincodeStrategy<ZERO_COPY, C>

§

impl<const ZERO_COPY: bool, C> RefUnwindSafe for WincodeStrategy<ZERO_COPY, C>
where C: RefUnwindSafe,

§

impl<const ZERO_COPY: bool, C> Send for WincodeStrategy<ZERO_COPY, C>
where C: Send,

§

impl<const ZERO_COPY: bool, C> Sync for WincodeStrategy<ZERO_COPY, C>
where C: Sync,

§

impl<const ZERO_COPY: bool, C> Unpin for WincodeStrategy<ZERO_COPY, C>
where C: Unpin,

§

impl<const ZERO_COPY: bool, C> UnsafeUnpin for WincodeStrategy<ZERO_COPY, C>

§

impl<const ZERO_COPY: bool, C> UnwindSafe for WincodeStrategy<ZERO_COPY, C>
where C: UnwindSafe,

Blanket Implementations§

Source§

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

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

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

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

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

Source§

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

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where 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.

Source§

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

Source§

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 T
where U: TryFrom<T>,

Source§

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.