pub struct LambdaExpr {
pub args: Arc<[Arg]>,
pub vargs: Option<Option<Type>>,
pub rtype: Option<Type>,
pub constraints: Arc<[(TVar, Type)]>,
pub throws: Option<Type>,
pub body: Either<Expr, ArcStr>,
}Fields§
§args: Arc<[Arg]>§vargs: Option<Option<Type>>§rtype: Option<Type>§constraints: Arc<[(TVar, Type)]>§throws: Option<Type>§body: Either<Expr, ArcStr>Trait Implementations§
Source§impl Clone for LambdaExpr
impl Clone for LambdaExpr
Source§fn clone(&self) -> LambdaExpr
fn clone(&self) -> LambdaExpr
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 LambdaExpr
impl Debug for LambdaExpr
Source§impl Display for LambdaExpr
impl Display for LambdaExpr
Source§impl PartialEq for LambdaExpr
impl PartialEq for LambdaExpr
Source§impl PartialOrd for LambdaExpr
impl PartialOrd for LambdaExpr
Source§impl PrettyDisplay for LambdaExpr
impl PrettyDisplay for LambdaExpr
Source§fn fmt_pretty_inner(&self, buf: &mut PrettyBuf) -> Result
fn fmt_pretty_inner(&self, buf: &mut PrettyBuf) -> Result
Do the actual pretty print. This should not be called directly, it will
be called by fmt_pretty when we know it can’t fit on a single line.
Source§fn fmt_pretty(&self, buf: &mut PrettyBuf) -> Result
fn fmt_pretty(&self, buf: &mut PrettyBuf) -> Result
This is the user facing fmt method, it will first try to format the
expression on a single line, and if that is impossible it will call the
pretty printer.
impl StructuralPartialEq for LambdaExpr
Auto Trait Implementations§
impl Freeze for LambdaExpr
impl !RefUnwindSafe for LambdaExpr
impl Send for LambdaExpr
impl Sync for LambdaExpr
impl Unpin for LambdaExpr
impl !UnwindSafe for LambdaExpr
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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