pub enum SubstitutionValue {
I64(i64),
F64(f64),
Usize(usize),
}Expand description
Helper to contain possible values for substitution (kind of a reverse of FipsValue: this is used to represent Rust types given for substitution without assuming that they are also valid types in FIPS)
Variants§
I64(i64)
i64 analogous to Int64 FIPS type
F64(f64)
f64 analogous to Double FIPS type
Usize(usize)
usize for arrays
Trait Implementations§
Source§impl Clone for SubstitutionValue
impl Clone for SubstitutionValue
Source§fn clone(&self) -> SubstitutionValue
fn clone(&self) -> SubstitutionValue
Returns a copy 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 Debug for SubstitutionValue
impl Debug for SubstitutionValue
Source§impl Display for SubstitutionValue
impl Display for SubstitutionValue
Auto Trait Implementations§
impl Freeze for SubstitutionValue
impl RefUnwindSafe for SubstitutionValue
impl Send for SubstitutionValue
impl Sync for SubstitutionValue
impl Unpin for SubstitutionValue
impl UnwindSafe for SubstitutionValue
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