pub enum BlobRefOrOwned<'a, B: BlobReaderTrait> {
Ref(&'a mut B),
Owned(B),
}
Expand description
Container type for mixing borrowed and owned blobs.
Variants§
Implementations§
source§impl<'a, B: BlobReaderTrait> BlobRefOrOwned<'a, B>
impl<'a, B: BlobReaderTrait> BlobRefOrOwned<'a, B>
sourcepub fn as_mut_ref(&mut self) -> &mut B
pub fn as_mut_ref(&mut self) -> &mut B
Convenience method to get mutable reference to the blob
Trait Implementations§
source§impl<'a, B: BlobReaderTrait> From<&'a mut B> for BlobRefOrOwned<'a, B>
impl<'a, B: BlobReaderTrait> From<&'a mut B> for BlobRefOrOwned<'a, B>
source§impl<'a, B: BlobReaderTrait> From<B> for BlobRefOrOwned<'a, B>
impl<'a, B: BlobReaderTrait> From<B> for BlobRefOrOwned<'a, B>
Auto Trait Implementations§
impl<'a, B> RefUnwindSafe for BlobRefOrOwned<'a, B>where B: RefUnwindSafe,
impl<'a, B> Send for BlobRefOrOwned<'a, B>
impl<'a, B> Sync for BlobRefOrOwned<'a, B>
impl<'a, B> Unpin for BlobRefOrOwned<'a, B>where B: Unpin,
impl<'a, B> !UnwindSafe for BlobRefOrOwned<'a, B>
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