pub struct ShapeGrammar {
pub target: GrammarTarget,
pub graph: GrammarGraph,
pub text: String,
pub diagnostics: Vec<Diagnostic>,
}Expand description
Rendered grammar text plus its neutral graph and diagnostics.
Fields§
§target: GrammarTargetTarget metadata used to render text.
graph: GrammarGraphThe source codec-neutral graph.
text: StringRendered grammar text.
diagnostics: Vec<Diagnostic>Diagnostics emitted during lowering or rendering.
Trait Implementations§
Source§impl Clone for ShapeGrammar
impl Clone for ShapeGrammar
Source§fn clone(&self) -> ShapeGrammar
fn clone(&self) -> ShapeGrammar
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 ShapeGrammar
impl Debug for ShapeGrammar
impl Eq for ShapeGrammar
Source§impl PartialEq for ShapeGrammar
impl PartialEq for ShapeGrammar
impl StructuralPartialEq for ShapeGrammar
Auto Trait Implementations§
impl Freeze for ShapeGrammar
impl RefUnwindSafe for ShapeGrammar
impl Send for ShapeGrammar
impl Sync for ShapeGrammar
impl Unpin for ShapeGrammar
impl UnsafeUnpin for ShapeGrammar
impl UnwindSafe for ShapeGrammar
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