Skip to main content

## ToBaseN

# 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§

Source

#### fn encoded_len(base: usize) -> usize

## Provided Methods§

Source

#### fn to_base_fixed_len(self, base: usize) -> BaseNString

Source

#### fn to_base(self, base: usize) -> BaseNString

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

Source§

#### fn encoded_len(base: usize) -> usize

Source§

### impl ToBaseN for u64

Source§

#### fn encoded_len(base: usize) -> usize

Source§

### impl ToBaseN for u128

Source§

#### fn encoded_len(base: usize) -> usize

## Implementors§