pub struct Instance {
pub objects: Vec<InterpObject>,
pub gold_derivation: Option<(TreeArena<String>, Tree)>,
}Expand description
A single corpus instance.
Fields§
§objects: Vec<InterpObject>Parsed objects, one per interpretation, in declared order.
gold_derivation: Option<(TreeArena<String>, Tree)>The gold derivation tree (annotated corpora only); read for round-trip, not used by parsing.
Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Instance
impl !Sync for Instance
impl !UnwindSafe for Instance
impl Freeze for Instance
impl Send for Instance
impl Unpin for Instance
impl UnsafeUnpin for Instance
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