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, D: ClvmDecoder<Node = N>> FromClvm<D> for Raw<N>
impl<N, D: ClvmDecoder<Node = N>> FromClvm<D> for Raw<N>
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