Variants
Integer(IntType)
Float([u8; 8])
String(StringID)
Implementations
sourceimpl Constant
impl Constant
pub fn try_into_int(self) -> Option<IntType>
pub fn try_into_float(self) -> Option<FloatType>
pub fn try_into_string_id(self) -> Option<StringID>
Trait Implementations
sourceimpl From<SymbolU32> for Constant
impl From<SymbolU32> for Constant
sourcefn from(symbol: InternSymbol) -> Self
fn from(symbol: InternSymbol) -> Self
Converts to this type from the input type.
impl Copy for Constant
impl Eq for Constant
impl StructuralEq for Constant
impl StructuralPartialEq for Constant
Auto Trait Implementations
impl RefUnwindSafe for Constant
impl Send for Constant
impl Sync for Constant
impl Unpin for Constant
impl UnwindSafe for Constant
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> CallHasher for T where
T: Hash + ?Sized,
impl<T> CallHasher for T where
T: Hash + ?Sized,
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more