pub struct StringDescriptorLossy(pub StringDescriptor);Expand description
A StringDescriptor wrapper that allows invalid UNICODE data.
Invalid data will be replaced with U+FFFD REPLACEMENT CHARACTER (�).
Tuple Fields§
§0: StringDescriptorTrait Implementations§
Source§impl Clone for StringDescriptorLossy
impl Clone for StringDescriptorLossy
Source§fn clone(&self) -> StringDescriptorLossy
fn clone(&self) -> StringDescriptorLossy
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 StringDescriptorLossy
impl Debug for StringDescriptorLossy
Source§impl Format for StringDescriptorLossywhere
StringDescriptor: Format,
impl Format for StringDescriptorLossywhere
StringDescriptor: Format,
Source§impl PartialEq for StringDescriptorLossy
impl PartialEq for StringDescriptorLossy
Source§impl USBDescriptor for StringDescriptorLossy
impl USBDescriptor for StringDescriptorLossy
type Error = DescriptorError
fn try_from_bytes(bytes: &[u8]) -> Result<Self, Self::Error>
impl Eq for StringDescriptorLossy
impl StructuralPartialEq for StringDescriptorLossy
Auto Trait Implementations§
impl Freeze for StringDescriptorLossy
impl RefUnwindSafe for StringDescriptorLossy
impl Send for StringDescriptorLossy
impl Sync for StringDescriptorLossy
impl Unpin for StringDescriptorLossy
impl UnwindSafe for StringDescriptorLossy
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