pub enum Expansion<T, S = T> {
Expanded(T),
Original(S),
}Expand description
Value returned by certain methods of Source.
The type is used to indicate whether an expansion took place, and in case it did not, give back the original value.
Variants§
Expanded(T)
The source expanded the value into a new value.
Original(S)
The source returned the original value and did not expand it.
Auto Trait Implementations§
impl<T, S> Freeze for Expansion<T, S>
impl<T, S> RefUnwindSafe for Expansion<T, S>where
T: RefUnwindSafe,
S: RefUnwindSafe,
impl<T, S> Send for Expansion<T, S>
impl<T, S> Sync for Expansion<T, S>
impl<T, S> Unpin for Expansion<T, S>
impl<T, S> UnwindSafe for Expansion<T, S>where
T: UnwindSafe,
S: UnwindSafe,
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