[][src]Struct ed25519_dalek_cosi::mask::Mask

pub struct Mask(_);

Methods

impl Mask[src]

pub fn new(len: usize) -> Self[src]

pub fn enable(&mut self, index: usize) -> Result<()>[src]

pub fn disable(&mut self, index: usize) -> Result<()>[src]

pub fn set_bit(&mut self, index: usize, state: MaskBitState) -> Result<()>[src]

pub fn get_bit(&self, index: usize) -> Option<MaskBitState>[src]

pub fn iter(&self) -> impl Iterator<Item = MaskBitState> + '_[src]

pub fn is_enabled(&self, index: usize) -> bool[src]

pub fn len(&self) -> usize[src]

pub fn from_bytes<T: AsRef<[u8]>>(bytes: T) -> Self[src]

Trait Implementations

impl AsRef<[u8]> for Mask[src]

impl Clone for Mask[src]

impl Debug for Mask[src]

impl Default for Mask[src]

impl Eq for Mask[src]

impl PartialEq<Mask> for Mask[src]

Auto Trait Implementations

impl RefUnwindSafe for Mask

impl Send for Mask

impl Sync for Mask

impl Unpin for Mask

impl UnwindSafe for Mask

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Clear for T where
    T: InitializableFromZeroed + ?Sized

impl<T> From<T> for T[src]

impl<T> InitializableFromZeroed for T where
    T: Default

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,