Struct playdate_device::device::serial::SerialNumber
source · pub struct SerialNumber(/* private fields */);Expand description
Represents a device serial number. e.g.: PDU1-Y000235
Implementations§
source§impl SerialNumber
impl SerialNumber
pub fn contained_in<S: AsRef<str>>(s: S) -> Option<Self>
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 FromStr for SerialNumber
impl FromStr for SerialNumber
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> 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