Enum nu_protocol::MaybeOwned [−][src]
pub enum MaybeOwned<'a, T> {
Owned(T),
Borrowed(&'a T),
}Expand description
Helper type to allow passing something that may potentially be owned, but could also be borrowed
Variants
Borrowed(&'a T)Implementations
Trait Implementations
Auto Trait Implementations
impl<'a, T> RefUnwindSafe for MaybeOwned<'a, T> where
T: RefUnwindSafe, impl<'a, T> Send for MaybeOwned<'a, T> where
T: Send + Sync, impl<'a, T> Sync for MaybeOwned<'a, T> where
T: Sync, impl<'a, T> Unpin for MaybeOwned<'a, T> where
T: Unpin, impl<'a, T> UnwindSafe for MaybeOwned<'a, T> where
T: RefUnwindSafe + UnwindSafe,