pub struct GlobalBinding {
pub variable: Symbol,
pub operator: _Eql,
pub value: Box<Expr>,
}Expand description
A typed Macaulay2 global_binding syntax node.
Fields§
§variable: SymbolThe variable child of this syntax node.
operator: _EqlThe operator child of this syntax node.
value: Box<Expr>The value child of this syntax node.
Implementations§
Trait Implementations§
Source§impl Debug for GlobalBinding
impl Debug for GlobalBinding
Source§impl From<GlobalBinding> for Assignment
impl From<GlobalBinding> for Assignment
Source§fn from(value: GlobalBinding) -> Self
fn from(value: GlobalBinding) -> Self
Converts to this type from the input type.
Source§impl From<GlobalBinding> for Component
impl From<GlobalBinding> for Component
Source§fn from(value: GlobalBinding) -> Self
fn from(value: GlobalBinding) -> Self
Converts to this type from the input type.
Source§impl From<GlobalBinding> for Expr
impl From<GlobalBinding> for Expr
Source§fn from(value: GlobalBinding) -> Self
fn from(value: GlobalBinding) -> Self
Converts to this type from the input type.
Source§impl From<GlobalBinding> for SimpleBinding
impl From<GlobalBinding> for SimpleBinding
Source§fn from(value: GlobalBinding) -> Self
fn from(value: GlobalBinding) -> Self
Converts to this type from the input type.
Source§impl Lex for GlobalBinding
impl Lex for GlobalBinding
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 GlobalBindingwhere
N: ExternalCstNode,
impl<N> Migrate<N> for GlobalBindingwhere
N: ExternalCstNode,
Source§impl PrettyTree for GlobalBinding
impl PrettyTree for GlobalBinding
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 GlobalBinding
impl RefUnwindSafe for GlobalBinding
impl Send for GlobalBinding
impl Sync for GlobalBinding
impl Unpin for GlobalBinding
impl UnsafeUnpin for GlobalBinding
impl UnwindSafe for GlobalBinding
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