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

Object Safety§

This trait is not object safe.

Implementors§