Struct playdate_device::device::serial::SerialNumber
source · pub struct SerialNumber(/* private fields */);Expand description
Represents a device serial number. e.g.: PDU1-Y000235
Implementations§
Trait Implementations§
source§impl Clone for SerialNumber
impl Clone for SerialNumber
source§fn clone(&self) -> SerialNumber
fn clone(&self) -> SerialNumber
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 SerialNumber
impl Debug for SerialNumber
source§impl Display for SerialNumber
impl Display for SerialNumber
source§impl From<<SerialNumber as FromStr>::Err> for DeviceQueryError
impl From<<SerialNumber as FromStr>::Err> for DeviceQueryError
source§fn from(source: ParseError) -> Self
fn from(source: ParseError) -> Self
Converts to this type from the input type.
source§impl FromStr for SerialNumber
impl FromStr for SerialNumber
source§impl PartialEq<SerialNumber> for &str
impl PartialEq<SerialNumber> for &str
source§fn eq(&self, sn: &SerialNumber) -> bool
fn eq(&self, sn: &SerialNumber) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl PartialEq<SerialNumber> for String
impl PartialEq<SerialNumber> for String
source§fn eq(&self, sn: &SerialNumber) -> bool
fn eq(&self, sn: &SerialNumber) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl PartialEq for SerialNumber
impl PartialEq for SerialNumber
source§impl TryFrom<&Path> for SerialNumber
impl TryFrom<&Path> for SerialNumber
source§impl TryFrom<&str> for SerialNumber
impl TryFrom<&str> for SerialNumber
Auto Trait Implementations§
impl Freeze for SerialNumber
impl RefUnwindSafe for SerialNumber
impl Send for SerialNumber
impl Sync for SerialNumber
impl Unpin for SerialNumber
impl UnwindSafe for SerialNumber
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> WithSubscriber for T
impl<T> WithSubscriber for T
source§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
source§fn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...) attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 24 bytes