pub struct LanguageRowBuilder { /* private fields */ }Expand description
Builder for LanguageRow values.
Implementations§
Source§impl LanguageRowBuilder
impl LanguageRowBuilder
Sourcepub fn new(language: Symbol, profile: LanguageProfile) -> Self
pub fn new(language: Symbol, profile: LanguageProfile) -> Self
Starts a row builder for language and profile.
Sourcepub fn with_case(self, case: SourceConformanceCase) -> Self
pub fn with_case(self, case: SourceConformanceCase) -> Self
Appends one source case.
Sourcepub fn with_cases<I>(self, cases: I) -> Selfwhere
I: IntoIterator<Item = SourceConformanceCase>,
pub fn with_cases<I>(self, cases: I) -> Selfwhere
I: IntoIterator<Item = SourceConformanceCase>,
Appends source cases from an iterator.
Sourcepub fn with_expr_cases<I>(self, cases: I) -> Selfwhere
I: IntoIterator<Item = ExprRoundTripCase>,
pub fn with_expr_cases<I>(self, cases: I) -> Selfwhere
I: IntoIterator<Item = ExprRoundTripCase>,
Appends expression round-trip cases from an iterator.
Sourcepub fn build(self) -> LanguageRow
pub fn build(self) -> LanguageRow
Builds the row.
Trait Implementations§
Source§impl Clone for LanguageRowBuilder
impl Clone for LanguageRowBuilder
Source§fn clone(&self) -> LanguageRowBuilder
fn clone(&self) -> LanguageRowBuilder
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for LanguageRowBuilder
impl RefUnwindSafe for LanguageRowBuilder
impl Send for LanguageRowBuilder
impl Sync for LanguageRowBuilder
impl Unpin for LanguageRowBuilder
impl UnsafeUnpin for LanguageRowBuilder
impl UnwindSafe for LanguageRowBuilder
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