pub enum Param<'a, T> {
Borrowed(&'a T),
Owned(T),
}
Expand description
A COM method parameter used to accept either a reference or value.
Variants§
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<'a, T> Freeze for Param<'a, T>where
T: Freeze,
impl<'a, T> RefUnwindSafe for Param<'a, T>where
T: RefUnwindSafe,
impl<'a, T> Send for Param<'a, T>
impl<'a, T> Sync for Param<'a, T>where
T: Sync,
impl<'a, T> Unpin for Param<'a, T>where
T: Unpin,
impl<'a, T> UnwindSafe for Param<'a, T>where
T: UnwindSafe + RefUnwindSafe,
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