pub struct RefTo<K>(/* private fields */);Expand description
A reference to content of kind(s) K, kept as the resolved id.
Trait Implementations§
Source§impl<K: Kinds> With<String> for RefTo<K>
impl<K: Kinds> With<String> for RefTo<K>
fn shape() -> Shape
fn read(v: &ValueRef<'_>, cx: &mut Reader<'_>) -> Option<String>
fn write(f: &String) -> Value
Source§fn encode(f: &F, w: &mut Writer)
fn encode(f: &F, w: &mut Writer)
The field in the binary form, straight: its value encoded unless
the codec knows better.
Source§fn decode(d: &mut Decoder<'_>) -> Option<F>
fn decode(d: &mut Decoder<'_>) -> Option<F>
The field from the binary form, straight;
None sends the read the
slow way (see Schema::decode).Auto Trait Implementations§
impl<K> Freeze for RefTo<K>where
PhantomData<K>: Freeze,
impl<K> RefUnwindSafe for RefTo<K>where
PhantomData<K>: RefUnwindSafe,
impl<K> Send for RefTo<K>where
PhantomData<K>: Send,
impl<K> Sync for RefTo<K>where
PhantomData<K>: Sync,
impl<K> Unpin for RefTo<K>where
PhantomData<K>: Unpin,
impl<K> UnsafeUnpin for RefTo<K>where
PhantomData<K>: UnsafeUnpin,
impl<K> UnwindSafe for RefTo<K>where
PhantomData<K>: 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