Struct chanoma::corr::Correspondence
source · [−]pub struct Correspondence<T> { /* private fields */ }
Expand description
Corr の実装同士を合成して Synthesized 構造体を生成するために利用する構造体です。
Implementations
sourceimpl<T> Correspondence<T>
impl<T> Correspondence<T>
sourcepub const fn new(inner: T) -> Self
pub const fn new(inner: T) -> Self
Correspondence 構造体を初期化します。
use chanoma::corr::{Correspondence, Synthesized};
let synth = Synthesized::default();
let corr = Correspondence::new(synth);
Trait Implementations
sourceimpl<T, U> Add<&'_ Correspondence<U>> for Correspondence<T> where
T: Corr,
U: Corr,
impl<T, U> Add<&'_ Correspondence<U>> for Correspondence<T> where
T: Corr,
U: Corr,
type Output = Correspondence<Synthesized>
type Output = Correspondence<Synthesized>
The resulting type after applying the +
operator.
sourcefn add(self, rhs: &Correspondence<U>) -> Self::Output
fn add(self, rhs: &Correspondence<U>) -> Self::Output
Performs the +
operation. Read more
sourceimpl<T> AddAssign<&'_ Correspondence<T>> for Correspondence<Synthesized> where
T: Corr,
impl<T> AddAssign<&'_ Correspondence<T>> for Correspondence<Synthesized> where
T: Corr,
sourcefn add_assign(&mut self, rhs: &Correspondence<T>)
fn add_assign(&mut self, rhs: &Correspondence<T>)
Performs the +=
operation. Read more
sourceimpl<T: Corr> AsRef<Correspondence<T>> for Correspondence<T>
impl<T: Corr> AsRef<Correspondence<T>> for Correspondence<T>
sourcefn as_ref(&self) -> &Correspondence<T>
fn as_ref(&self) -> &Correspondence<T>
Converts this type into a shared reference of the (usually inferred) input type.
sourceimpl<T: Clone> Clone for Correspondence<T>
impl<T: Clone> Clone for Correspondence<T>
sourcefn clone(&self) -> Correspondence<T>
fn clone(&self) -> Correspondence<T>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl<T: Debug> Debug for Correspondence<T>
impl<T: Debug> Debug for Correspondence<T>
sourceimpl<Synthesized: Default> Default for Correspondence<Synthesized>
impl<Synthesized: Default> Default for Correspondence<Synthesized>
sourceimpl<T: Corr> Deref for Correspondence<T>
impl<T: Corr> Deref for Correspondence<T>
sourceimpl<T> From<&'_ Correspondence<T>> for Synthesized where
T: Corr,
impl<T> From<&'_ Correspondence<T>> for Synthesized where
T: Corr,
sourcefn from(f: &Correspondence<T>) -> Self
fn from(f: &Correspondence<T>) -> Self
Converts to this type from the input type.
sourceimpl<T> From<&'_ Correspondence<T>> for SerializedCorr where
T: Corr,
impl<T> From<&'_ Correspondence<T>> for SerializedCorr where
T: Corr,
sourcefn from(corr: &Correspondence<T>) -> Self
fn from(corr: &Correspondence<T>) -> Self
Converts to this type from the input type.
sourceimpl<T> From<Correspondence<T>> for Synthesized where
T: Corr,
impl<T> From<Correspondence<T>> for Synthesized where
T: Corr,
sourcefn from(f: Correspondence<T>) -> Self
fn from(f: Correspondence<T>) -> Self
Converts to this type from the input type.
sourceimpl<T> PartialEq<Correspondence<T>> for Correspondence<T> where
T: Corr,
impl<T> PartialEq<Correspondence<T>> for Correspondence<T> where
T: Corr,
sourceimpl<T, U> Sub<&'_ Correspondence<U>> for Correspondence<T> where
T: Corr,
U: Corr,
impl<T, U> Sub<&'_ Correspondence<U>> for Correspondence<T> where
T: Corr,
U: Corr,
type Output = Correspondence<Synthesized>
type Output = Correspondence<Synthesized>
The resulting type after applying the -
operator.
sourcefn sub(self, rhs: &Correspondence<U>) -> Self::Output
fn sub(self, rhs: &Correspondence<U>) -> Self::Output
Performs the -
operation. Read more
sourceimpl<T> SubAssign<&'_ Correspondence<T>> for Correspondence<Synthesized> where
T: Corr,
impl<T> SubAssign<&'_ Correspondence<T>> for Correspondence<Synthesized> where
T: Corr,
sourcefn sub_assign(&mut self, rhs: &Correspondence<T>)
fn sub_assign(&mut self, rhs: &Correspondence<T>)
Performs the -=
operation. Read more
Auto Trait Implementations
impl<T> RefUnwindSafe for Correspondence<T> where
T: RefUnwindSafe,
impl<T> Send for Correspondence<T> where
T: Send,
impl<T> Sync for Correspondence<T> where
T: Sync,
impl<T> Unpin for Correspondence<T> where
T: Unpin,
impl<T> UnwindSafe for Correspondence<T> where
T: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more