Skip to main content

Padding

Trait Padding 

Source
pub trait Padding: Copy {
    // Required method
    fn padding(self) -> Option<u8>;

    // Provided method
    fn eq(self, other: u8) -> bool { ... }
}

Required Methods§

Source

fn padding(self) -> Option<u8>

Provided Methods§

Source

fn eq(self, other: u8) -> bool

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl Padding for Option<u8>

Source§

impl Padding for u8

Implementors§