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>
source§impl<'bytes> ReaderWithOptions<Borrowed<'bytes>> for File<'bytes>
impl<'bytes> ReaderWithOptions<Borrowed<'bytes>> for File<'bytes>
Auto Trait Implementations§
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