Trait rustpython_compiler_core::bytecode::Constant
source · 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
Object Safety§
This trait is not object safe.