Enum tx5::BackBufRef
source · pub enum BackBufRef<'lt> {
Owned(Result<BackBuf>),
Borrowed(Result<&'lt mut BackBuf>),
}Expand description
Conversion type facilitating Into<&mut BackBuf>.
Variants§
Implementations§
source§impl<'lt> BackBufRef<'lt>
impl<'lt> BackBufRef<'lt>
sourcepub fn as_mut_ref(&'lt mut self) -> Result<&'lt mut BackBuf>
pub fn as_mut_ref(&'lt mut self) -> Result<&'lt mut BackBuf>
Get a mutable reference to the buffer.
Trait Implementations§
source§impl<'lt> From<&'lt mut BackBuf> for BackBufRef<'lt>
impl<'lt> From<&'lt mut BackBuf> for BackBufRef<'lt>
source§impl From<BackBuf> for BackBufRef<'static>
impl From<BackBuf> for BackBufRef<'static>
Auto Trait Implementations§
impl<'lt> !RefUnwindSafe for BackBufRef<'lt>
impl<'lt> Send for BackBufRef<'lt>
impl<'lt> !Sync for BackBufRef<'lt>
impl<'lt> Unpin for BackBufRef<'lt>
impl<'lt> !UnwindSafe for BackBufRef<'lt>
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