pub struct CanonicalLacegram {
pub text: String,
pub program: Lacegram,
}Expand description
Canonical text and its already parsed, validated Datalog program.
Compiler stages carry this pair together so canonical text is never reparsed merely to recover the program that produced it.
Fields§
§text: String§program: LacegramTrait Implementations§
Source§impl Clone for CanonicalLacegram
impl Clone for CanonicalLacegram
Source§fn clone(&self) -> CanonicalLacegram
fn clone(&self) -> CanonicalLacegram
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 CanonicalLacegram
impl Debug for CanonicalLacegram
impl Eq for CanonicalLacegram
Source§impl PartialEq for CanonicalLacegram
impl PartialEq for CanonicalLacegram
Source§fn eq(&self, other: &CanonicalLacegram) -> bool
fn eq(&self, other: &CanonicalLacegram) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for CanonicalLacegram
Auto Trait Implementations§
impl Freeze for CanonicalLacegram
impl RefUnwindSafe for CanonicalLacegram
impl Send for CanonicalLacegram
impl Sync for CanonicalLacegram
impl Unpin for CanonicalLacegram
impl UnsafeUnpin for CanonicalLacegram
impl UnwindSafe for CanonicalLacegram
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