pub struct DeserializeWithGroup<G: AbelianGroupStore>where
G::Type: SerializableElementGroup,{ /* private fields */ }Available on crate feature
unstable-enable only.Expand description
Wrapper of a group that implements [serde::DeserializationSeed] by trying to deserialize
an element w.r.t. the wrapped group.
§Availability
This API is marked as unstable and is only available when the unstable-enable crate feature is enabled. This comes with no stability guarantees, and could be changed or removed at any time.
Implementations§
Source§impl<G> DeserializeWithGroup<G>
impl<G> DeserializeWithGroup<G>
Trait Implementations§
Source§impl<G: Clone + AbelianGroupStore> Clone for DeserializeWithGroup<G>where
G::Type: SerializableElementGroup,
impl<G: Clone + AbelianGroupStore> Clone for DeserializeWithGroup<G>where
G::Type: SerializableElementGroup,
Source§fn clone(&self) -> DeserializeWithGroup<G>
fn clone(&self) -> DeserializeWithGroup<G>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'de, G> DeserializeSeed<'de> for DeserializeWithGroup<G>
impl<'de, G> DeserializeSeed<'de> for DeserializeWithGroup<G>
Source§type Value = <<G as AbelianGroupStore>::Type as AbelianGroupBase>::Element
type Value = <<G as AbelianGroupStore>::Type as AbelianGroupBase>::Element
The type produced by using this seed.
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§
impl<G> Freeze for DeserializeWithGroup<G>where
G: Freeze,
impl<G> RefUnwindSafe for DeserializeWithGroup<G>where
G: RefUnwindSafe,
impl<G> Send for DeserializeWithGroup<G>where
G: Send,
impl<G> Sync for DeserializeWithGroup<G>where
G: Sync,
impl<G> Unpin for DeserializeWithGroup<G>where
G: Unpin,
impl<G> UnsafeUnpin for DeserializeWithGroup<G>where
G: UnsafeUnpin,
impl<G> UnwindSafe for DeserializeWithGroup<G>where
G: 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more