Trait rustpython_compiler_core::Constant
source · pub trait Constant: Sized {
type Name: AsRef<str>;
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