pub struct SyntaxSugar {
pub name: String,
pub surface: String,
pub core: String,
}Expand description
An abstract syntax sugar definition.
Fields§
§name: StringName of this syntactic sugar
surface: StringThe surface form
core: StringThe desugared core form
Implementations§
Trait Implementations§
Source§impl Clone for SyntaxSugar
impl Clone for SyntaxSugar
Source§fn clone(&self) -> SyntaxSugar
fn clone(&self) -> SyntaxSugar
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 SyntaxSugar
impl RefUnwindSafe for SyntaxSugar
impl Send for SyntaxSugar
impl Sync for SyntaxSugar
impl Unpin for SyntaxSugar
impl UnsafeUnpin for SyntaxSugar
impl UnwindSafe for SyntaxSugar
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