cipher

Trait Counter

Source
pub trait Counter:
    TryFrom<i32>
    + TryFrom<u32>
    + TryFrom<u64>
    + TryFrom<u128>
    + TryFrom<usize>
    + TryInto<i32>
    + TryInto<u32>
    + TryInto<u64>
    + TryInto<u128>
    + TryInto<usize> { }
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.

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 Counter for u32

Source§

impl Counter for u64

Source§

impl Counter for u128

Implementors§