Struct gluon_base::serialization::SharedSeed
source · pub struct SharedSeed<'seed, T, S: 'seed> {
pub seed: &'seed mut S,
/* private fields */
}
Fields§
§seed: &'seed mut S
Implementations§
pub fn with_cloner(seed: &'seed mut S, cloner: fn(_: &T) -> T) -> Self
pub fn new(seed: &'seed mut S) -> SharedSeed<'seed, T, S>
Trait Implementations§
source§fn deserialize<D>(self, deserializer: D) -> Result<Self::Value, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(self, deserializer: D) -> Result<Self::Value, D::Error>where
D: Deserializer<'de>,
Equivalent to the more common
Deserialize::deserialize
method, except
with some initial piece of data (the seed) passed in.Auto Trait Implementations§
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