Struct gstreamer::Bitmask [−][src]
pub struct Bitmask(pub u64);
Implementations
Methods from Deref<Target = u64>
pub const MIN: u64
1.43.0[src]
pub const MAX: u64
1.43.0[src]
pub const BITS: u32
1.53.0[src]
pub fn as_ne_bytes(&self) -> &[u8; 8]
[src]
🔬 This is a nightly-only experimental API. (num_as_ne_bytes
)
pub fn as_ne_bytes(&self) -> &[u8; 8]
[src]🔬 This is a nightly-only experimental API. (
num_as_ne_bytes
)Return the memory representation of this integer as a byte array in native byte order.
to_ne_bytes
should be preferred over this whenever possible.
Examples
#![feature(num_as_ne_bytes)] let num = 0x1234567890123456u64; let bytes = num.as_ne_bytes(); assert_eq!( bytes, if cfg!(target_endian = "big") { &[0x12, 0x34, 0x56, 0x78, 0x90, 0x12, 0x34, 0x56] } else { &[0x56, 0x34, 0x12, 0x90, 0x78, 0x56, 0x34, 0x12] } );
Trait Implementations
impl<'de> Deserialize<'de> for Bitmask
[src]
impl<'de> Deserialize<'de> for Bitmask
[src]fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]Deserialize this value from the given Serde deserializer. Read more
impl<'a> FromValue<'a> for Bitmask
[src]
impl<'a> FromValue<'a> for Bitmask
[src]type Checker = GenericValueTypeChecker<Self>
type Checker = GenericValueTypeChecker<Self>
Value type checker.
unsafe fn from_value(value: &'a Value) -> Self
[src]
unsafe fn from_value(value: &'a Value) -> Self
[src]Get the contained value from a Value
. Read more
impl StaticType for Bitmask
[src]
impl StaticType for Bitmask
[src]fn static_type() -> Type
[src]
fn static_type() -> Type
[src]Returns the type identifier of Self
.
impl Copy for Bitmask
[src]
impl Eq for Bitmask
[src]
impl StructuralEq for Bitmask
[src]
impl StructuralPartialEq for Bitmask
[src]
Auto Trait Implementations
impl RefUnwindSafe for Bitmask
impl Send for Bitmask
impl Sync for Bitmask
impl Unpin for Bitmask
impl UnwindSafe for Bitmask
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
impl<T> ToSendValue for T where
T: Send + ToValue + ?Sized,
[src]
impl<T> ToSendValue for T where
T: Send + ToValue + ?Sized,
[src]pub fn to_send_value(&self) -> SendValue
[src]
pub fn to_send_value(&self) -> SendValue
[src]Returns a SendValue
clone of self
.
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,