pub struct SyntaxRules {
pub syntax: ThinVec<ExprKind>,
pub patterns: ThinVec<PatternPair>,
pub location: SyntaxObject,
}Fields§
§syntax: ThinVec<ExprKind>§patterns: ThinVec<PatternPair>§location: SyntaxObjectImplementations§
Source§impl SyntaxRules
impl SyntaxRules
pub fn new( syntax: ThinVec<ExprKind>, patterns: ThinVec<PatternPair>, location: SyntaxObject, ) -> Self
Trait Implementations§
Source§impl Clone for SyntaxRules
impl Clone for SyntaxRules
Source§fn clone(&self) -> SyntaxRules
fn clone(&self) -> SyntaxRules
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 moreSource§impl Debug for SyntaxRules
impl Debug for SyntaxRules
Source§impl<'de> Deserialize<'de> for SyntaxRules
impl<'de> Deserialize<'de> for SyntaxRules
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for SyntaxRules
impl Display for SyntaxRules
Source§impl From<SyntaxRules> for ExprKind
impl From<SyntaxRules> for ExprKind
Source§fn from(val: SyntaxRules) -> Self
fn from(val: SyntaxRules) -> Self
Converts to this type from the input type.
Source§impl PartialEq for SyntaxRules
impl PartialEq for SyntaxRules
Source§impl Serialize for SyntaxRules
impl Serialize for SyntaxRules
impl StructuralPartialEq for SyntaxRules
Auto Trait Implementations§
impl Freeze for SyntaxRules
impl RefUnwindSafe for SyntaxRules
impl Send for SyntaxRules
impl Sync for SyntaxRules
impl Unpin for SyntaxRules
impl UnsafeUnpin for SyntaxRules
impl UnwindSafe for SyntaxRules
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> ToCompactString for Twhere
T: Display,
impl<T> ToCompactString for Twhere
T: Display,
Source§fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
Fallible version of
ToCompactString::to_compact_string() Read moreSource§fn to_compact_string(&self) -> CompactString
fn to_compact_string(&self) -> CompactString
Converts the given value to a
CompactString. Read more