pub struct Values<V> { /* private fields */ }Expand description
Apply this strategy to values held inside.
This applies to any sort of collection such as a Vec or a HashSet.
Trait Implementations§
Source§impl<T: Ord, S: EncodingStrategy<T>> EncodingStrategy<BTreeSet<T>> for Values<S>
impl<T: Ord, S: EncodingStrategy<T>> EncodingStrategy<BTreeSet<T>> for Values<S>
Source§type Context = SetContext<T, S>
type Context = SetContext<T, S>
The conext (i.e. probability model) for this encoding strategy applied to this type.
Source§fn encode<W: Write>(
value: &BTreeSet<T>,
writer: &mut Writer<W>,
ctx: &mut Self::Context,
) -> Result<(), Error>
fn encode<W: Write>( value: &BTreeSet<T>, writer: &mut Writer<W>, ctx: &mut Self::Context, ) -> Result<(), Error>
Encode the value with this strategy.
Source§impl<T: Ord, S: EncodingStrategy<T>> EncodingStrategy<BTreeSet<T>> for Values<S>
impl<T: Ord, S: EncodingStrategy<T>> EncodingStrategy<BTreeSet<T>> for Values<S>
Source§impl<T, S: EncodingStrategy<T>> EncodingStrategy<Box<[T]>> for Values<S>
impl<T, S: EncodingStrategy<T>> EncodingStrategy<Box<[T]>> for Values<S>
Source§impl<T: Hash + Eq, S: EncodingStrategy<T>> EncodingStrategy<HashSet<T>> for Values<S>
impl<T: Hash + Eq, S: EncodingStrategy<T>> EncodingStrategy<HashSet<T>> for Values<S>
Source§type Context = SetContext<T, S>
type Context = SetContext<T, S>
The conext (i.e. probability model) for this encoding strategy applied to this type.
Source§fn encode<W: Write>(
value: &HashSet<T>,
writer: &mut Writer<W>,
ctx: &mut Self::Context,
) -> Result<(), Error>
fn encode<W: Write>( value: &HashSet<T>, writer: &mut Writer<W>, ctx: &mut Self::Context, ) -> Result<(), Error>
Encode the value with this strategy.
Source§impl<T: Hash + Eq, S: EncodingStrategy<T>> EncodingStrategy<HashSet<T>> for Values<S>
impl<T: Hash + Eq, S: EncodingStrategy<T>> EncodingStrategy<HashSet<T>> for Values<S>
Source§impl<T, S: EncodingStrategy<T>> EncodingStrategy<Vec<T>> for Values<S>
impl<T, S: EncodingStrategy<T>> EncodingStrategy<Vec<T>> for Values<S>
Source§type Context = Context<T, S>
type Context = Context<T, S>
The conext (i.e. probability model) for this encoding strategy applied to this type.
Source§fn decode<R: Read>(
reader: &mut Reader<R>,
ctx: &mut Self::Context,
) -> Result<Vec<T>, Error>
fn decode<R: Read>( reader: &mut Reader<R>, ctx: &mut Self::Context, ) -> Result<Vec<T>, Error>
Decode the value using this strategy.
Source§impl<T, S: EncodingStrategy<T>> EncodingStrategy<Vec<T>> for Values<S>
impl<T, S: EncodingStrategy<T>> EncodingStrategy<Vec<T>> for Values<S>
Source§impl<V: Ord> Ord for Values<V>
impl<V: Ord> Ord for Values<V>
Source§impl<V: PartialOrd> PartialOrd for Values<V>
impl<V: PartialOrd> PartialOrd for Values<V>
impl<V: Copy> Copy for Values<V>
impl<V: Eq> Eq for Values<V>
impl<V> StructuralPartialEq for Values<V>
Auto Trait Implementations§
impl<V> Freeze for Values<V>
impl<V> RefUnwindSafe for Values<V>where
V: RefUnwindSafe,
impl<V> Send for Values<V>where
V: Send,
impl<V> Sync for Values<V>where
V: Sync,
impl<V> Unpin for Values<V>where
V: Unpin,
impl<V> UnsafeUnpin for Values<V>
impl<V> UnwindSafe for Values<V>where
V: 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