Enum passerine::compiler::cst::CST [−][src]
Represents an item in a desugaredCST
.
Each langauge-level construct has it’s own CST
variant.
Note that, for instance, call only takes two arguments,
Whereas it’s originally parsed as a AST::Form
.
Variants
Symbol(String)
Data(Data)
Implementations
impl CST
[src]
pub fn assign(pattern: Spanned<CSTPattern>, expression: Spanned<CST>) -> CST
[src]
Shortcut for creating an CST::Assign
variant.
pub fn lambda(pattern: Spanned<CSTPattern>, expression: Spanned<CST>) -> CST
[src]
Shortcut for creating an CST::Lambda
variant.
pub fn label(name: &str, expression: Spanned<CST>) -> CST
[src]
Shortcut for creating a CST::Label
variant.
pub fn call(fun: Spanned<CST>, arg: Spanned<CST>) -> CST
[src]
Shortcut for creating a CST::Lambda
variant.
pub fn ffi(name: &str, expression: Spanned<CST>) -> CST
[src]
Shortcut for creating an CST::FFI
variant.
Trait Implementations
impl Clone for CST
[src]
impl Debug for CST
[src]
impl PartialEq<CST> for CST
[src]
impl StructuralPartialEq for CST
[src]
Auto Trait Implementations
impl !RefUnwindSafe for CST
impl !Send for CST
impl !Sync for CST
impl Unpin for CST
impl !UnwindSafe for CST
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,