pub struct Optional<'a, T> { /* private fields */ }Expand description
An option parameter that maps down to Option, taking a single value (precisely 1).
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<'a, T> Freeze for Optional<'a, T>
impl<'a, T> !RefUnwindSafe for Optional<'a, T>
impl<'a, T> !Send for Optional<'a, T>
impl<'a, T> !Sync for Optional<'a, T>
impl<'a, T> Unpin for Optional<'a, T>
impl<'a, T> !UnwindSafe for Optional<'a, T>
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