pub struct Borrowed<'de, T: 'de + ?Sized>(pub &'de T);
Tuple Fields§
§0: &'de T
Trait Implementations§
source§impl<'de, E> IdentifierDeserializer<'de, E> for Borrowed<'de, [u8]>where
E: Error,
impl<'de, E> IdentifierDeserializer<'de, E> for Borrowed<'de, [u8]>where
E: Error,
type Deserializer = BorrowedBytesDeserializer<'de, E>
fn from(self) -> Self::Deserializer
source§impl<'de, E> IdentifierDeserializer<'de, E> for Borrowed<'de, str>where
E: Error,
impl<'de, E> IdentifierDeserializer<'de, E> for Borrowed<'de, str>where
E: Error,
type Deserializer = BorrowedStrDeserializer<'de, E>
fn from(self) -> Self::Deserializer
Auto Trait Implementations§
impl<'de, T> Freeze for Borrowed<'de, T>where
T: ?Sized,
impl<'de, T> RefUnwindSafe for Borrowed<'de, T>where
T: RefUnwindSafe + ?Sized,
impl<'de, T> Send for Borrowed<'de, T>
impl<'de, T> Sync for Borrowed<'de, T>
impl<'de, T> Unpin for Borrowed<'de, T>where
T: ?Sized,
impl<'de, T> UnwindSafe for Borrowed<'de, T>where
T: RefUnwindSafe + ?Sized,
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