Thanks to visit codestin.com
Credit goes to docs.rs

Skip to main content

StringletKind

Trait StringletKind 

Source
pub trait StringletKind {
    type ExtraLen: Copy + Clone;

    const NAME: &str;
    const FIXED: bool = false;
    const VAR: bool = false;
    const TRIM: bool = false;
    const SLIM: bool = false;
}

Required Associated Constants§

Source

const NAME: &str

Provided Associated Constants§

Source

const FIXED: bool = false

Source

const VAR: bool = false

Source

const TRIM: bool = false

Source

const SLIM: bool = false

Required Associated Types§

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.

Implementors§

Source§

impl StringletKind for Fixed

Source§

const FIXED: bool = true

Source§

const NAME: &str = "Stringlet"

Source§

type ExtraLen = ()

Source§

impl StringletKind for Slim

Source§

const SLIM: bool = true

Source§

const NAME: &str = "SlimStringlet"

Source§

type ExtraLen = ()

Source§

impl StringletKind for Trim

Source§

const TRIM: bool = true

Source§

const NAME: &str = "TrimStringlet"

Source§

type ExtraLen = ()

Source§

impl StringletKind for Var

Source§

const VAR: bool = true

Source§

const NAME: &str = "VarStringlet"

Source§

type ExtraLen = u8