Enum libreauth::pass::LengthCalculationMethod
source · #[repr(C)]
pub enum LengthCalculationMethod {
Bytes,
Characters,
}
Expand description
Available methods to calculate the length of a UTF-8 string.
C interface
The C interface uses an enum of type libreauth_pass_len_calc
and the members has been renamed
as follows:
Rust | C |
---|---|
Bytes | LIBREAUTH_PASS_BYTES |
Characters | LIBREAUTH_PASS_CHARACTERS |
Variants§
Trait Implementations§
source§impl Clone for LengthCalculationMethod
impl Clone for LengthCalculationMethod
source§fn clone(&self) -> LengthCalculationMethod
fn clone(&self) -> LengthCalculationMethod
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 LengthCalculationMethod
impl Debug for LengthCalculationMethod
source§impl PartialEq<LengthCalculationMethod> for LengthCalculationMethod
impl PartialEq<LengthCalculationMethod> for LengthCalculationMethod
source§fn eq(&self, other: &LengthCalculationMethod) -> bool
fn eq(&self, other: &LengthCalculationMethod) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for LengthCalculationMethod
impl Eq for LengthCalculationMethod
impl StructuralEq for LengthCalculationMethod
impl StructuralPartialEq for LengthCalculationMethod
Auto Trait Implementations§
impl RefUnwindSafe for LengthCalculationMethod
impl Send for LengthCalculationMethod
impl Sync for LengthCalculationMethod
impl Unpin for LengthCalculationMethod
impl UnwindSafe for LengthCalculationMethod
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