pub trait Constant: Sized {
type Name: AsRef<str>;
// Required method
fn borrow_constant(&self) -> BorrowedConstant<'_, Self>;
}
Required Associated Types§
Required Methods§
Sourcefn borrow_constant(&self) -> BorrowedConstant<'_, Self>
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.