Enum windows_metadata::ConstantValue
source · [−]pub enum ConstantValue {
}
Variants
Bool(bool)
U8(u8)
I8(i8)
U16(u16)
I16(i16)
U32(u32)
I32(i32)
U64(u64)
I64(i64)
F32(f32)
F64(f64)
String(String)
TypeDef(TypeDef)
Implementations
sourceimpl ConstantValue
impl ConstantValue
pub fn unwrap_u32(&self) -> u32
pub fn unwrap_u16(&self) -> u16
pub fn unwrap_u8(&self) -> u8
Auto Trait Implementations
impl RefUnwindSafe for ConstantValue
impl Send for ConstantValue
impl Sync for ConstantValue
impl Unpin for ConstantValue
impl UnwindSafe for ConstantValue
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