Struct lens_rs::optics::_Some [−][src]
Trait Implementations
impl<Optic: Clone> Clone for _Some<Optic>
[src]
impl<Optic: Copy> Copy for _Some<Optic>
[src]
impl<Pm, T> Prism<Option<T>> for _Some<Pm> where
Pm: Prism<T>,
[src]
Pm: Prism<T>,
type To = Pm::To
fn pm(&self, source: Option<T>) -> Option<Self::To>
[src]
fn pm_ref<'a>(&self, source: &'a Option<T>) -> Option<&'a Self::To>
[src]
fn pm_mut<'a>(&self, source: &'a mut Option<T>) -> Option<&'a mut Self::To>
[src]
impl<Rv, T> Review<Option<T>> for _Some<Rv> where
Rv: Review<T>,
[src]
Rv: Review<T>,
impl<Tr, T> Traversal<Option<T>> for _Some<Tr> where
Tr: Traversal<T>,
[src]
Tr: Traversal<T>,
Auto Trait Implementations
impl<Optic> RefUnwindSafe for _Some<Optic> where
Optic: RefUnwindSafe,
Optic: RefUnwindSafe,
impl<Optic> Send for _Some<Optic> where
Optic: Send,
Optic: Send,
impl<Optic> Sync for _Some<Optic> where
Optic: Sync,
Optic: Sync,
impl<Optic> Unpin for _Some<Optic> where
Optic: Unpin,
Optic: Unpin,
impl<Optic> UnwindSafe for _Some<Optic> where
Optic: UnwindSafe,
Optic: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,