Struct usb_pd::messages::pdo::RawRequestDataObject
source · pub struct RawRequestDataObject(pub u32);
Tuple Fields§
§0: u32
Implementations§
source§impl RawRequestDataObject
impl RawRequestDataObject
sourcepub fn object_position(&self) -> u8
pub fn object_position(&self) -> u8
Valid range 1..=14
sourcepub fn with_object_position(self, value: u8) -> Self
pub fn with_object_position(self, value: u8) -> Self
Valid range 1..=14
sourcepub fn set_object_position(&mut self, value: u8)
pub fn set_object_position(&mut self, value: u8)
Valid range 1..=14
Trait Implementations§
source§impl Clone for RawRequestDataObject
impl Clone for RawRequestDataObject
source§fn clone(&self) -> RawRequestDataObject
fn clone(&self) -> RawRequestDataObject
Returns a copy 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 RawRequestDataObject
impl Debug for RawRequestDataObject
source§impl Format for RawRequestDataObject
impl Format for RawRequestDataObject
source§impl From<RawRequestDataObject> for u32
impl From<RawRequestDataObject> for u32
source§fn from(other: RawRequestDataObject) -> Self
fn from(other: RawRequestDataObject) -> Self
Converts to this type from the input type.
source§impl From<u32> for RawRequestDataObject
impl From<u32> for RawRequestDataObject
source§impl PartialEq for RawRequestDataObject
impl PartialEq for RawRequestDataObject
source§fn eq(&self, other: &RawRequestDataObject) -> bool
fn eq(&self, other: &RawRequestDataObject) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for RawRequestDataObject
impl Eq for RawRequestDataObject
impl StructuralPartialEq for RawRequestDataObject
Auto Trait Implementations§
impl Freeze for RawRequestDataObject
impl RefUnwindSafe for RawRequestDataObject
impl Send for RawRequestDataObject
impl Sync for RawRequestDataObject
impl Unpin for RawRequestDataObject
impl UnwindSafe for RawRequestDataObject
Blanket Implementations§
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, U> UnsafeFrom<U> for Twhere
U: Into<T>,
impl<T, U> UnsafeFrom<U> for Twhere
U: Into<T>,
source§unsafe fn unsafe_from(other: U) -> T
unsafe fn unsafe_from(other: U) -> T
Calls U::into(other)
.
That is, this conversion is whatever the implementation of Into
<T> for U
chooses to
do.
source§impl<T, U> UnsafeInto<U> for Twhere
U: UnsafeFrom<T>,
impl<T, U> UnsafeInto<U> for Twhere
U: UnsafeFrom<T>,
source§unsafe fn unsafe_into(self) -> U
unsafe fn unsafe_into(self) -> U
Calls U::unsafe_from(self)
.
That is, this conversion is whatever the implementation of UnsafeFrom
<T> for U
chooses to do.