pub struct Segment<'r, R: Read, P: Parser> { /* private fields */ }
Expand description
A CBOR segment
This type represents a single bytes or text segment on the wire. It can be read out in parsed chunks based on the size of the input scratch buffer.
Implementations§
Auto Trait Implementations§
impl<'r, R, P> Freeze for Segment<'r, R, P>where
P: Freeze,
impl<'r, R, P> RefUnwindSafe for Segment<'r, R, P>where
P: RefUnwindSafe,
R: RefUnwindSafe,
impl<'r, R, P> Send for Segment<'r, R, P>
impl<'r, R, P> Sync for Segment<'r, R, P>
impl<'r, R, P> Unpin for Segment<'r, R, P>where
P: Unpin,
impl<'r, R, P> !UnwindSafe for Segment<'r, R, P>
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
Layout§
Note: Unable to compute type layout, possibly due to this type having generic parameters. Layout can only be computed for concrete, fully-instantiated types.