pub struct TextDecoder<W> { /* private fields */ }Expand description
Decode an HID report descriptor to plain text.
Implementations§
Source§impl<W> TextDecoder<W>where
W: Write,
impl<W> TextDecoder<W>where
W: Write,
Sourcepub fn new(writer: W) -> Self
pub fn new(writer: W) -> Self
Create a new TextDecoder, by specifying where the output will be written.
§Example
let mut decoder = TextDecoder::new(std::io::stdout());Sourcepub fn display_tag_type(self) -> Self
pub fn display_tag_type(self) -> Self
Display the item tag types, i.e. Main, Global, Local.
Sourcepub fn display_raw_bytes(self) -> Self
pub fn display_raw_bytes(self) -> Self
Display the raw bytes that make up each item.
Trait Implementations§
Source§impl<W: Clone> Clone for TextDecoder<W>
impl<W: Clone> Clone for TextDecoder<W>
Source§fn clone(&self) -> TextDecoder<W>
fn clone(&self) -> TextDecoder<W>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl<W> Freeze for TextDecoder<W>where
W: Freeze,
impl<W> RefUnwindSafe for TextDecoder<W>where
W: RefUnwindSafe,
impl<W> Send for TextDecoder<W>where
W: Send,
impl<W> Sync for TextDecoder<W>where
W: Sync,
impl<W> Unpin for TextDecoder<W>where
W: Unpin,
impl<W> UnsafeUnpin for TextDecoder<W>where
W: UnsafeUnpin,
impl<W> UnwindSafe for TextDecoder<W>where
W: UnwindSafe,
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