pub struct SerializeWithRing<'a, R: RingStore>where
R::Type: SerializableElementRing,{ /* private fields */ }
Available on crate feature
unstable-enable
only.Expand description
Wraps a ring and a reference to 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<'a, R: RingStore> SerializeWithRing<'a, R>where
R::Type: SerializableElementRing,
impl<'a, R: RingStore> SerializeWithRing<'a, R>where
R::Type: SerializableElementRing,
Trait Implementations§
Source§impl<'a, R: RingStore> Serialize for SerializeWithRing<'a, R>where
R::Type: SerializableElementRing,
impl<'a, R: RingStore> Serialize for SerializeWithRing<'a, R>where
R::Type: SerializableElementRing,
Auto Trait Implementations§
impl<'a, R> Freeze for SerializeWithRing<'a, R>where
R: Freeze,
impl<'a, R> RefUnwindSafe for SerializeWithRing<'a, R>
impl<'a, R> Send for SerializeWithRing<'a, R>
impl<'a, R> Sync for SerializeWithRing<'a, R>
impl<'a, R> Unpin for SerializeWithRing<'a, R>where
R: Unpin,
impl<'a, R> UnwindSafe for SerializeWithRing<'a, R>
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