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§

Object Safety§

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§