Enum ComposablePlaintext
pub enum ComposablePlaintext {
Unit(Plaintext),
ConstArg2(ConstArg2),
ConstArg3(ConstArg3),
ConstArg4(ConstArg4),
}Variants§
Implementations§
§impl ComposablePlaintext
impl ComposablePlaintext
pub fn new(plaintext: impl Into<Plaintext>) -> Self
pub fn as_plaintext(self) -> Option<Plaintext>
pub fn try_compose( self, plaintext: impl Into<Plaintext>, ) -> Result<Self, EncryptionError>
Trait Implementations§
§impl Clone for ComposablePlaintext
impl Clone for ComposablePlaintext
§fn clone(&self) -> ComposablePlaintext
fn clone(&self) -> ComposablePlaintext
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read more§impl Debug for ComposablePlaintext
impl Debug for ComposablePlaintext
§impl<T: Into<Plaintext>> From<T> for ComposablePlaintext
impl<T: Into<Plaintext>> From<T> for ComposablePlaintext
§impl PartialEq for ComposablePlaintext
impl PartialEq for ComposablePlaintext
impl StructuralPartialEq for ComposablePlaintext
§impl<A, B> TryFrom<(A, B)> for ComposablePlaintext
impl<A, B> TryFrom<(A, B)> for ComposablePlaintext
§impl<A, B, C> TryFrom<(A, B, C)> for ComposablePlaintext
impl<A, B, C> TryFrom<(A, B, C)> for ComposablePlaintext
§impl<A, B, C, D> TryFrom<(A, B, C, D)> for ComposablePlaintext
impl<A, B, C, D> TryFrom<(A, B, C, D)> for ComposablePlaintext
§type Error = EncryptionError
type Error = EncryptionError
The type returned in the event of a conversion error.
§fn try_from((a, b, c, d): (A, B, C, D)) -> Result<Self, Self::Error>
fn try_from((a, b, c, d): (A, B, C, D)) -> Result<Self, Self::Error>
Performs the conversion.
§impl TryFrom<ComposablePlaintext> for Plaintext
impl TryFrom<ComposablePlaintext> for Plaintext
§type Error = EncryptionError
type Error = EncryptionError
The type returned in the event of a conversion error.
§fn try_from(value: ComposablePlaintext) -> Result<Self, Self::Error>
fn try_from(value: ComposablePlaintext) -> Result<Self, Self::Error>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for ComposablePlaintext
impl RefUnwindSafe for ComposablePlaintext
impl Send for ComposablePlaintext
impl Sync for ComposablePlaintext
impl Unpin for ComposablePlaintext
impl UnsafeUnpin for ComposablePlaintext
impl UnwindSafe for ComposablePlaintext
Blanket Implementations§
impl<T> AuthStrategyBounds for T
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
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