StreamCipherCounter

Trait StreamCipherCounter 

Source
pub trait StreamCipherCounter:
    TryFrom<i32>
    + TryFrom<u32>
    + TryFrom<u64>
    + TryFrom<u128>
    + TryFrom<usize>
    + TryInto<i32>
    + TryInto<u32>
    + TryInto<u64>
    + TryInto<u128>
    + TryInto<usize>
    + Copy {
    // Required method
    fn is_max(&self) -> bool;
}
Expand description

Counter type usable with StreamCipherCore.

This trait is implemented for i32, u32, u64, u128, and usize. It’s not intended to be implemented in third-party crates, but doing so is not forbidden.

Required Methods§

Source

fn is_max(&self) -> bool

Returns true if self is equal to the max counter value.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl StreamCipherCounter for u32

Source§

fn is_max(&self) -> bool

Source§

impl StreamCipherCounter for u64

Source§

fn is_max(&self) -> bool

Source§

impl StreamCipherCounter for u128

Source§

fn is_max(&self) -> bool

Implementors§