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
Allows the borrowing of an owned value or passes out the borrowed value
Formats the value using the given formatter. Read more
impl<T> Any for T where
T: 'static + ?Sized,
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
impl<T, U> Into<U> for T where
U: From<T>,
Converts a value into a Spanned value
Converts a value into a Spanned value, using an unknown Span
The type returned in the event of a conversion error.
The type returned in the event of a conversion error.