Fields
value_type: ValueType
_pad: u32
value_data: ValueData
Implementations
sourceimpl Value
impl Value
pub fn as_i64(&self) -> i64
pub fn from_i64(v: i64) -> Value
pub fn as_f32(&self) -> f32
pub fn from_f32(v: f32) -> Value
pub fn as_vec2(&self) -> [f32; 2]
pub fn from_vec2(v: [f32; 2]) -> Value
pub fn as_vec3(&self) -> [f32; 3]
pub fn from_vec3(v: [f32; 3]) -> Value
pub fn as_vec4(&self) -> [f32; 4]
pub fn from_vec4(v: [f32; 4]) -> Value
pub fn as_quat(&self) -> [f32; 4]
pub fn from_quat(v: [f32; 4]) -> Value
pub fn none() -> Value
pub fn as_bool(&self) -> bool
pub fn from_bool(v: bool) -> Value
Trait Implementations
sourceimpl CheckedBitPattern for Value
impl CheckedBitPattern for Value
type Bits = ValueBits
type Bits = ValueBits
Self
must have the same layout as the specified Bits
except for
the possible invalid bit patterns being checked during
is_valid_bit_pattern
. Read more
sourcefn is_valid_bit_pattern(bits: &ValueBits) -> bool
fn is_valid_bit_pattern(bits: &ValueBits) -> bool
If this function returns true, then it must be valid to reinterpret bits
as &Self
. Read more
impl Copy for Value
impl NoUninit for Value
Auto Trait Implementations
impl RefUnwindSafe for Value
impl Send for Value
impl Sync for Value
impl Unpin for Value
impl UnwindSafe for Value
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