pub struct FromLiteral<const S: &'static str, T> { /* private fields */ }Trait Implementations§
Source§impl<const S: &'static str, T: ConstFromStr + Codec<O> + PartialEq, O: Ops> Codec<O> for FromLiteral<S, T>
impl<const S: &'static str, T: ConstFromStr + Codec<O> + PartialEq, O: Ops> Codec<O> for FromLiteral<S, T>
Source§fn codec_read(ops: &O) -> ReadResult<Self>
fn codec_read(ops: &O) -> ReadResult<Self>
Convert from a data format to a data structure.
Source§fn codec_write(&self) -> WriteResult<O>
fn codec_write(&self) -> WriteResult<O>
Convert from a data structure to a data format.
type Incomplete = Result<Self, ReadError>
Auto Trait Implementations§
impl<const S: &'static str, T> Forget for FromLiteral<S, T>
impl<const S: &'static str, T> Freeze for FromLiteral<S, T>where
PhantomData<T>: Freeze,
impl<const S: &'static str, T> Move for FromLiteral<S, T>
impl<const S: &'static str, T> RefUnwindSafe for FromLiteral<S, T>where
T: RefUnwindSafe,
impl<const S: &'static str, T> Send for FromLiteral<S, T>where
T: Send,
impl<const S: &'static str, T> Sync for FromLiteral<S, T>where
T: Sync,
impl<const S: &'static str, T> Unpin for FromLiteral<S, T>where
T: Unpin,
impl<const S: &'static str, T> UnsafeUnpin for FromLiteral<S, T>where
PhantomData<T>: UnsafeUnpin,
impl<const S: &'static str, T> UnwindSafe for FromLiteral<S, 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