pub trait ExprNode: Copy {
type Args: Iterator<Item = Self> + ExactSizeIterator + Clone;
// Required methods
fn size(self) -> Option<usize>;
fn kind<'a>(self) -> ExprKind<'a, Self>
where Self: 'a;
}Expand description
Required Associated Types§
Sourcetype Args: Iterator<Item = Self> + ExactSizeIterator + Clone
type Args: Iterator<Item = Self> + ExactSizeIterator + Clone
The arguments of a call node, in order.
Required Methods§
Sourcefn size(self) -> Option<usize>
fn size(self) -> Option<usize>
The width in bytes this node carries, if the producer knows one.
This is the Expression::size a materialised AST would have: what
was written, or what the producer inferred while expanding. None
leaves the passes to derive one from the node’s shape.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".