Struct chanoma::corr::Synthesized
source · [−]pub struct Synthesized { /* private fields */ }
Expand description
Corr の実装同士を合成する際に利用する一時的な構造体です。
Implementations
sourceimpl Synthesized
impl Synthesized
sourcepub const fn new(items: Vec<Item>) -> Self
pub const fn new(items: Vec<Item>) -> Self
Synthesized 構造体を初期化します。
use chanoma::corr::{Item, Synthesized};
let items = vec![Item::new("a", "A")];
let synth = Synthesized::new(items);
sourcepub const fn corr(self) -> Correspondence<Self>
pub const fn corr(self) -> Correspondence<Self>
Correspondence を返します。
Trait Implementations
sourceimpl Clone for Synthesized
impl Clone for Synthesized
sourcefn clone(&self) -> Synthesized
fn clone(&self) -> Synthesized
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 Corr for Synthesized
impl Corr for Synthesized
fn items(&self) -> Vec<Item>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
A: Allocator,
A: Allocator,
fn corr(self) -> Correspondence<Self> where
Self: Sized,
fn synthesize(&self) -> Correspondence<Synthesized>
sourceimpl Debug for Synthesized
impl Debug for Synthesized
sourceimpl Default for Synthesized
impl Default for Synthesized
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 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.
Auto Trait Implementations
impl RefUnwindSafe for Synthesized
impl Send for Synthesized
impl Sync for Synthesized
impl Unpin for Synthesized
impl UnwindSafe for Synthesized
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)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more