Trait Constant

Source
pub trait Constant: Sized {
    type Name: AsRef<str>;

    // Required method
    fn borrow_constant(&self) -> BorrowedConstant<'_, Self>;
}

Required Associated Types§

Required Methods§

Source

fn borrow_constant(&self) -> BorrowedConstant<'_, Self>

Transforms the given Constant to a BorrowedConstant

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§