pub struct SerializeOwnedWithGroup<G: AbelianGroupStore>where
G::Type: SerializableElementGroup,{ /* private fields */ }Available on crate feature
unstable-enable only.Expand description
Wraps a ring and a one of its elements. Implements serde::Serialize and
will serialize the element w.r.t. the ring.
§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: AbelianGroupStore> SerializeOwnedWithGroup<G>where
G::Type: SerializableElementGroup,
impl<G: AbelianGroupStore> SerializeOwnedWithGroup<G>where
G::Type: SerializableElementGroup,
Trait Implementations§
Source§impl<G: AbelianGroupStore> Serialize for SerializeOwnedWithGroup<G>where
G::Type: SerializableElementGroup,
impl<G: AbelianGroupStore> Serialize for SerializeOwnedWithGroup<G>where
G::Type: SerializableElementGroup,
Auto Trait Implementations§
impl<G> Freeze for SerializeOwnedWithGroup<G>
impl<G> RefUnwindSafe for SerializeOwnedWithGroup<G>where
G: RefUnwindSafe,
<<G as AbelianGroupStore>::Type as AbelianGroupBase>::Element: RefUnwindSafe,
impl<G> Send for SerializeOwnedWithGroup<G>
impl<G> Sync for SerializeOwnedWithGroup<G>
impl<G> Unpin for SerializeOwnedWithGroup<G>
impl<G> UnsafeUnpin for SerializeOwnedWithGroup<G>
impl<G> UnwindSafe for SerializeOwnedWithGroup<G>
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> 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