pub struct SyntaxExtension {
pub name: String,
pub is_infix: bool,
pub is_prefix: bool,
pub is_postfix: bool,
}Expand description
A syntax extension hook.
Fields§
§name: StringName of the extension
is_infix: boolWhether this is an infix extension
is_prefix: boolWhether this is a prefix extension
is_postfix: boolWhether this is a postfix extension
Implementations§
Trait Implementations§
Source§impl Clone for SyntaxExtension
impl Clone for SyntaxExtension
Source§fn clone(&self) -> SyntaxExtension
fn clone(&self) -> SyntaxExtension
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 SyntaxExtension
impl RefUnwindSafe for SyntaxExtension
impl Send for SyntaxExtension
impl Sync for SyntaxExtension
impl Unpin for SyntaxExtension
impl UnsafeUnpin for SyntaxExtension
impl UnwindSafe for SyntaxExtension
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