pub struct CustomGrammarFormatParamBuilder { /* private fields */ }Expand description
Builder for CustomGrammarFormatParam.
Implementations§
Source§impl CustomGrammarFormatParamBuilder
impl CustomGrammarFormatParamBuilder
Sourcepub fn definition(&mut self, value: String) -> &mut Self
pub fn definition(&mut self, value: String) -> &mut Self
The grammar definition.
Sourcepub fn syntax(&mut self, value: GrammarSyntax) -> &mut Self
pub fn syntax(&mut self, value: GrammarSyntax) -> &mut Self
The syntax of the grammar definition. One of lark or regex.
Sourcepub fn build(
&self,
) -> Result<CustomGrammarFormatParam, CustomGrammarFormatParamBuilderError>
pub fn build( &self, ) -> Result<CustomGrammarFormatParam, CustomGrammarFormatParamBuilderError>
Trait Implementations§
Source§impl Clone for CustomGrammarFormatParamBuilder
impl Clone for CustomGrammarFormatParamBuilder
Source§fn clone(&self) -> CustomGrammarFormatParamBuilder
fn clone(&self) -> CustomGrammarFormatParamBuilder
Returns a duplicate of the value. Read more
1.0.0 · 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 CustomGrammarFormatParamBuilder
impl RefUnwindSafe for CustomGrammarFormatParamBuilder
impl Send for CustomGrammarFormatParamBuilder
impl Sync for CustomGrammarFormatParamBuilder
impl Unpin for CustomGrammarFormatParamBuilder
impl UnwindSafe for CustomGrammarFormatParamBuilder
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