pub struct ExprOpPrefix {
pub operator: PrefixOperator,
pub operand: Box<Expr>,
}Expand description
Struct generated by strutuct! for ExprOpPrefix.
Fields§
§operator: PrefixOperatorField ExprOpPrefix::operator generated by strutuct!.
operand: Box<Expr>Field ExprOpPrefix::operand generated by strutuct!.
Implementations§
Source§impl ExprOpPrefix
impl ExprOpPrefix
Sourcepub fn new(operator: PrefixOperator, operand: Box<Expr>) -> Self
pub fn new(operator: PrefixOperator, operand: Box<Expr>) -> Self
Creates this node from its typed children.
Trait Implementations§
Source§impl Debug for ExprOpPrefix
impl Debug for ExprOpPrefix
Source§impl From<ExprOpPrefix> for AssignmentArgument
impl From<ExprOpPrefix> for AssignmentArgument
Source§fn from(value: ExprOpPrefix) -> Self
fn from(value: ExprOpPrefix) -> Self
Converts to this type from the input type.
Source§impl From<ExprOpPrefix> for AssignmentListContent
impl From<ExprOpPrefix> for AssignmentListContent
Source§fn from(value: ExprOpPrefix) -> Self
fn from(value: ExprOpPrefix) -> Self
Converts to this type from the input type.
Source§impl From<ExprOpPrefix> for Component
impl From<ExprOpPrefix> for Component
Source§fn from(value: ExprOpPrefix) -> Self
fn from(value: ExprOpPrefix) -> Self
Converts to this type from the input type.
Source§impl From<ExprOpPrefix> for Expr
impl From<ExprOpPrefix> for Expr
Source§fn from(value: ExprOpPrefix) -> Self
fn from(value: ExprOpPrefix) -> Self
Converts to this type from the input type.
Source§impl From<ExprOpPrefix> for ExprOp
impl From<ExprOpPrefix> for ExprOp
Source§fn from(value: ExprOpPrefix) -> Self
fn from(value: ExprOpPrefix) -> Self
Converts to this type from the input type.
Source§impl From<ExprOpPrefix> for PackedContent
impl From<ExprOpPrefix> for PackedContent
Source§fn from(value: ExprOpPrefix) -> Self
fn from(value: ExprOpPrefix) -> Self
Converts to this type from the input type.
Source§impl Lex for ExprOpPrefix
impl Lex for ExprOpPrefix
Source§fn to_tokens(&self, output: &mut TokenStream)
fn to_tokens(&self, output: &mut TokenStream)
Appends this value’s token trees to
output.Source§fn to_token_stream(&self) -> TokenStream
fn to_token_stream(&self) -> TokenStream
Emits this value into a fresh token stream.
Source§impl<N> Migrate<N> for ExprOpPrefixwhere
N: ExternalCstNode,
impl<N> Migrate<N> for ExprOpPrefixwhere
N: ExternalCstNode,
Source§impl PrettyTree for ExprOpPrefix
impl PrettyTree for ExprOpPrefix
Source§fn pretty_tree(&self) -> PrettyNode
fn pretty_tree(&self) -> PrettyNode
Builds the presentation node for this syntax value.
Auto Trait Implementations§
impl Freeze for ExprOpPrefix
impl RefUnwindSafe for ExprOpPrefix
impl Send for ExprOpPrefix
impl Sync for ExprOpPrefix
impl Unpin for ExprOpPrefix
impl UnsafeUnpin for ExprOpPrefix
impl UnwindSafe for ExprOpPrefix
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