pub struct GrammarCheck {
pub accepted: bool,
pub decoded: Option<DecodedForm>,
pub diagnostics: Vec<Diagnostic>,
}Expand description
Report returned by grammar_check.
Fields§
§accepted: boolWhether decoding and Shape checking both accepted the text.
decoded: Option<DecodedForm>The decoded form, absent when the codec rejected the text.
diagnostics: Vec<Diagnostic>Diagnostics from the decode or Shape check.
Trait Implementations§
Source§impl Clone for GrammarCheck
impl Clone for GrammarCheck
Source§fn clone(&self) -> GrammarCheck
fn clone(&self) -> GrammarCheck
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 moreSource§impl Debug for GrammarCheck
impl Debug for GrammarCheck
impl Eq for GrammarCheck
Source§impl PartialEq for GrammarCheck
impl PartialEq for GrammarCheck
impl StructuralPartialEq for GrammarCheck
Auto Trait Implementations§
impl Freeze for GrammarCheck
impl RefUnwindSafe for GrammarCheck
impl Send for GrammarCheck
impl Sync for GrammarCheck
impl Unpin for GrammarCheck
impl UnsafeUnpin for GrammarCheck
impl UnwindSafe for GrammarCheck
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