pub struct Borrowed<'borrow>(pub &'borrow [u8]);
Expand description
Makes a shallow copy of the input.
The lifetime of the result is tied to the input buffer.
Tuple Fields§
§0: &'borrow [u8]
Trait Implementations§
Source§impl<'bytes> ReaderWithOptions<Borrowed<'bytes>> for File<'bytes>
impl<'bytes> ReaderWithOptions<Borrowed<'bytes>> for File<'bytes>
Auto Trait Implementations§
impl<'borrow> Freeze for Borrowed<'borrow>
impl<'borrow> RefUnwindSafe for Borrowed<'borrow>
impl<'borrow> Send for Borrowed<'borrow>
impl<'borrow> Sync for Borrowed<'borrow>
impl<'borrow> Unpin for Borrowed<'borrow>
impl<'borrow> UnwindSafe for Borrowed<'borrow>
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