Enum nu_protocol::MaybeOwned
source · [−]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
pub enum MaybeOwned<'a, T> {
Owned(T),
Borrowed(&'a T),
}
Helper type to allow passing something that may potentially be owned, but could also be borrowed
Owned(T)
Borrowed(&'a T)