pub struct Chars(pub Box<[CharRange]>);Tuple Fields§
§0: Box<[CharRange]>Implementations§
Source§impl Chars
impl Chars
Sourcepub unsafe fn from_ranges_unchecked<T, V>(ranges: V) -> Self
pub unsafe fn from_ranges_unchecked<T, V>(ranges: V) -> Self
§Safety
This function is only safe for evaluation if the ranges are non-overlapping.
pub fn from_ranges<T, V>(ranges: V) -> Self
Trait Implementations§
Source§impl Eval for Chars
impl Eval for Chars
Source§fn size(&self) -> NonZero<U256>
fn size(&self) -> NonZero<U256>
Returns the total number of passwords generated by this type, or some reasonable
approximation thereof (e.g. a type that constructs and samples its own RNG might return the
size of the RNG state here), but caution should be used when deviating too far from the
literal count/enumeration paradigm, as this may cause entropy estimates to be misleading.
Source§fn write_to(
&self,
w: &mut dyn Write,
index: &mut dyn ExposeSecretMut<U256>,
) -> Result<()>
fn write_to( &self, w: &mut dyn Write, index: &mut dyn ExposeSecretMut<U256>, ) -> Result<()>
Write the string at the given index to the given
Write instance. Typically the string
at index 0 will be the lowest or lexicographically first password, and the string at
self.size() - 1 will be the highest or lexicographically last password, but this is not
required.impl Eq for Chars
impl StructuralPartialEq for Chars
Auto Trait Implementations§
impl Freeze for Chars
impl RefUnwindSafe for Chars
impl Send for Chars
impl Sync for Chars
impl Unpin for Chars
impl UnsafeUnpin for Chars
impl UnwindSafe for Chars
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