Struct clvm_traits::Raw
source · pub struct Raw<N>(pub N);
Expand description
A wrapper for an intermediate CLVM value. This is required to
implement ToClvm
and FromClvm
for N
, since the compiler
cannot guarantee that the generic N
type doesn’t already
implement these traits.
Tuple Fields§
§0: N
Trait Implementations§
source§impl<N> FromClvm<N> for Raw<N>
impl<N> FromClvm<N> for Raw<N>
fn from_clvm( _decoder: &impl ClvmDecoder<Node = N>, node: N ) -> Result<Self, FromClvmError>
source§impl<N> ToClvm<N> for Raw<N>
impl<N> ToClvm<N> for Raw<N>
fn to_clvm( &self, encoder: &mut impl ClvmEncoder<Node = N> ) -> Result<N, ToClvmError>
Auto Trait Implementations§
impl<N> Freeze for Raw<N>where
N: Freeze,
impl<N> RefUnwindSafe for Raw<N>where
N: RefUnwindSafe,
impl<N> Send for Raw<N>where
N: Send,
impl<N> Sync for Raw<N>where
N: Sync,
impl<N> Unpin for Raw<N>where
N: Unpin,
impl<N> UnwindSafe for Raw<N>where
N: 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