pub struct NotationRule {
pub pattern: String,
pub expansion: String,
pub prec: PrecLevel,
pub namespace: Option<String>,
}Expand description
A user-defined notation rule.
Fields§
§pattern: StringThe notation pattern (e.g. “_ + _”)
expansion: StringThe expansion template
prec: PrecLevelThe precedence level
namespace: Option<String>The namespace this rule belongs to
Implementations§
Trait Implementations§
Source§impl Clone for NotationRule
impl Clone for NotationRule
Source§fn clone(&self) -> NotationRule
fn clone(&self) -> NotationRule
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 moreAuto Trait Implementations§
impl Freeze for NotationRule
impl RefUnwindSafe for NotationRule
impl Send for NotationRule
impl Sync for NotationRule
impl Unpin for NotationRule
impl UnsafeUnpin for NotationRule
impl UnwindSafe for NotationRule
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