Skip to main content

KpThenLockKp

Struct KpThenLockKp 

Source
pub struct KpThenLockKp<R, V, V2, Root, Value, Value2, MutRoot, MutValue, MutValue2, First, Second> { /* private fields */ }
Expand description

Keypath that chains a crate::Kp with a LockKp. Use crate::Kp::then_lock to create.

Implementations§

Source§

impl<R, V, V2, Root, Value, Value2, MutRoot, MutValue, MutValue2, First, Second> KpThenLockKp<R, V, V2, Root, Value, Value2, MutRoot, MutValue, MutValue2, First, Second>
where First: SyncKeyPathLike<Root, Value, MutRoot, MutValue>, Second: SyncKeyPathLike<Value, Value2, MutValue, MutValue2>,

Source

pub fn get(&self, root: Root) -> Option<Value2>
where Value2: Clone,

Get through first keypath then second (sync).

Source

pub fn get_mut(&self, root: MutRoot) -> Option<MutValue2>

Get mutable through first then second (sync).

Trait Implementations§

Source§

impl<R: Clone, V: Clone, V2: Clone, Root: Clone, Value: Clone, Value2: Clone, MutRoot: Clone, MutValue: Clone, MutValue2: Clone, First: Clone, Second: Clone> Clone for KpThenLockKp<R, V, V2, Root, Value, Value2, MutRoot, MutValue, MutValue2, First, Second>

Source§

fn clone( &self, ) -> KpThenLockKp<R, V, V2, Root, Value, Value2, MutRoot, MutValue, MutValue2, First, Second>

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more

Auto Trait Implementations§

§

impl<R, V, V2, Root, Value, Value2, MutRoot, MutValue, MutValue2, First, Second> Freeze for KpThenLockKp<R, V, V2, Root, Value, Value2, MutRoot, MutValue, MutValue2, First, Second>
where First: Freeze, Second: Freeze,

§

impl<R, V, V2, Root, Value, Value2, MutRoot, MutValue, MutValue2, First, Second> RefUnwindSafe for KpThenLockKp<R, V, V2, Root, Value, Value2, MutRoot, MutValue, MutValue2, First, Second>
where First: RefUnwindSafe, Second: RefUnwindSafe, R: RefUnwindSafe, V: RefUnwindSafe, V2: RefUnwindSafe, Root: RefUnwindSafe, Value: RefUnwindSafe, Value2: RefUnwindSafe, MutRoot: RefUnwindSafe, MutValue: RefUnwindSafe, MutValue2: RefUnwindSafe,

§

impl<R, V, V2, Root, Value, Value2, MutRoot, MutValue, MutValue2, First, Second> Send for KpThenLockKp<R, V, V2, Root, Value, Value2, MutRoot, MutValue, MutValue2, First, Second>
where First: Send, Second: Send, R: Send, V: Send, V2: Send, Root: Send, Value: Send, Value2: Send, MutRoot: Send, MutValue: Send, MutValue2: Send,

§

impl<R, V, V2, Root, Value, Value2, MutRoot, MutValue, MutValue2, First, Second> Sync for KpThenLockKp<R, V, V2, Root, Value, Value2, MutRoot, MutValue, MutValue2, First, Second>
where First: Sync, Second: Sync, R: Sync, V: Sync, V2: Sync, Root: Sync, Value: Sync, Value2: Sync, MutRoot: Sync, MutValue: Sync, MutValue2: Sync,

§

impl<R, V, V2, Root, Value, Value2, MutRoot, MutValue, MutValue2, First, Second> Unpin for KpThenLockKp<R, V, V2, Root, Value, Value2, MutRoot, MutValue, MutValue2, First, Second>
where First: Unpin, Second: Unpin, R: Unpin, V: Unpin, V2: Unpin, Root: Unpin, Value: Unpin, Value2: Unpin, MutRoot: Unpin, MutValue: Unpin, MutValue2: Unpin,

§

impl<R, V, V2, Root, Value, Value2, MutRoot, MutValue, MutValue2, First, Second> UnwindSafe for KpThenLockKp<R, V, V2, Root, Value, Value2, MutRoot, MutValue, MutValue2, First, Second>
where First: UnwindSafe, Second: UnwindSafe, R: UnwindSafe, V: UnwindSafe, V2: UnwindSafe, Root: UnwindSafe, Value: UnwindSafe, Value2: UnwindSafe, MutRoot: UnwindSafe, MutValue: UnwindSafe, MutValue2: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.