pub struct UsbEnabled(pub bool);Tuple Fields§
§0: boolTrait Implementations§
Source§impl Clone for UsbEnabled
impl Clone for UsbEnabled
Source§fn clone(&self) -> UsbEnabled
fn clone(&self) -> UsbEnabled
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for UsbEnabled
impl Debug for UsbEnabled
Source§impl<'de> Deserialize<'de> for UsbEnabled
impl<'de> Deserialize<'de> for UsbEnabled
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<UsbEnabled> for bool
impl From<UsbEnabled> for bool
Source§fn from(value: UsbEnabled) -> Self
fn from(value: UsbEnabled) -> Self
Converts to this type from the input type.
Source§impl From<bool> for UsbEnabled
impl From<bool> for UsbEnabled
Source§impl FromScalar<1> for UsbEnabled
impl FromScalar<1> for UsbEnabled
fn from_scalar(value: [u32; 1]) -> Self
Source§impl Hash for UsbEnabled
impl Hash for UsbEnabled
Source§impl PartialEq for UsbEnabled
impl PartialEq for UsbEnabled
Source§impl Serialize for UsbEnabled
impl Serialize for UsbEnabled
impl Copy for UsbEnabled
impl Eq for UsbEnabled
impl StructuralPartialEq for UsbEnabled
Auto Trait Implementations§
impl Freeze for UsbEnabled
impl RefUnwindSafe for UsbEnabled
impl Send for UsbEnabled
impl Sync for UsbEnabled
impl Unpin for UsbEnabled
impl UnwindSafe for UsbEnabled
Blanket Implementations§
§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
Source§impl<T> FromScalar<2> for Twhere
T: FromScalar<1>,
impl<T> FromScalar<2> for Twhere
T: FromScalar<1>,
fn from_scalar(value: [u32; 2]) -> T
Source§impl<T> FromScalar<3> for Twhere
T: FromScalar<2>,
impl<T> FromScalar<3> for Twhere
T: FromScalar<2>,
fn from_scalar(value: [u32; 3]) -> T
Source§impl<T> FromScalar<4> for Twhere
T: FromScalar<3>,
impl<T> FromScalar<4> for Twhere
T: FromScalar<3>,
fn from_scalar(value: [u32; 4]) -> T
§impl<T> LayoutRaw for T
impl<T> LayoutRaw for T
§fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
Returns the layout of the type.