pub struct Expression<'hir> {
pub id: HirId,
pub kind: ExpressionKind<'hir>,
pub span: Span,
}Fields§
§id: HirId§kind: ExpressionKind<'hir>§span: SpanImplementations§
Source§impl<'hir> Expression<'hir>
impl<'hir> Expression<'hir>
pub fn new(kind: ExpressionKind<'hir>, span: Span) -> Self
Trait Implementations§
Source§impl<'hir> Debug for Expression<'hir>
impl<'hir> Debug for Expression<'hir>
Source§impl<'hir> From<&'hir Expression<'hir>> for HirNodeKind<'hir>
impl<'hir> From<&'hir Expression<'hir>> for HirNodeKind<'hir>
Source§fn from(value: &'hir Expression<'hir>) -> Self
fn from(value: &'hir Expression<'hir>) -> Self
Converts to this type from the input type.
Source§impl<'hir> HirNode<'hir> for Expression<'hir>
impl<'hir> HirNode<'hir> for Expression<'hir>
fn get_hir_id(&self) -> HirId
fn get_hir_node_kind(&'hir self) -> HirNodeKind<'hir>
fn set_hir_id(&mut self, id: HirId)
Auto Trait Implementations§
impl<'hir> Freeze for Expression<'hir>
impl<'hir> !RefUnwindSafe for Expression<'hir>
impl<'hir> !Send for Expression<'hir>
impl<'hir> !Sync for Expression<'hir>
impl<'hir> Unpin for Expression<'hir>
impl<'hir> !UnwindSafe for Expression<'hir>
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