rustc_data_structures::base_n

Trait ToBaseN

source
pub trait ToBaseN: Into<u128> {
    // Required method
    fn encoded_len(base: usize) -> usize;

    // Provided methods
    fn to_base_fixed_len(self, base: usize) -> BaseNString { ... }
    fn to_base(self, base: usize) -> BaseNString { ... }
}

Required Methods§

Provided Methods§

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

source§

impl ToBaseN for u64

source§

impl ToBaseN for u128

Implementors§