pub enum LengthRequirement {
Exactly(usize),
AtLeast(usize),
AtMost(usize),
Between {
minimum: usize,
maximum: usize,
},
}Expand description
A length bound that a plaintext or ciphertext input failed to meet.
Variants§
Exactly(usize)
Exactly this many bytes are required.
AtLeast(usize)
At least this many bytes are required.
AtMost(usize)
At most this many bytes are permitted.
Between
A length in this inclusive range is required.
Trait Implementations§
Source§impl Clone for LengthRequirement
impl Clone for LengthRequirement
Source§fn clone(&self) -> LengthRequirement
fn clone(&self) -> LengthRequirement
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 moreimpl Copy for LengthRequirement
Source§impl Debug for LengthRequirement
impl Debug for LengthRequirement
Source§impl Display for LengthRequirement
impl Display for LengthRequirement
impl Eq for LengthRequirement
Source§impl PartialEq for LengthRequirement
impl PartialEq for LengthRequirement
impl StructuralPartialEq for LengthRequirement
Auto Trait Implementations§
impl Freeze for LengthRequirement
impl RefUnwindSafe for LengthRequirement
impl Send for LengthRequirement
impl Sync for LengthRequirement
impl Unpin for LengthRequirement
impl UnsafeUnpin for LengthRequirement
impl UnwindSafe for LengthRequirement
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