Enum syntax::ast::Line
[−]
[src]
pub enum Line { Label(Label), Assignment(Assignment), Dim(Dim), FunctionCall(FunctionCall), Statement(Statement), }
A single line.
Variants
Label(Label)
Assignment(Assignment)
Dim(Dim)
FunctionCall(FunctionCall)
Statement(Statement)
Methods
impl Line
[src]
impl Line
pub fn from_str(src: &str) -> Result<Self, ParseError>
[src]
pub fn from_str(src: &str) -> Result<Self, ParseError>
Try to parse the provided string as this type of AST node.
Trait Implementations
impl Debug for Line
[src]
impl Debug for Line
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Clone for Line
[src]
impl Clone for Line
fn clone(&self) -> Line
[src]
fn clone(&self) -> Line
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl PartialEq for Line
[src]
impl PartialEq for Line
fn eq(&self, __arg_0: &Line) -> bool
[src]
fn eq(&self, __arg_0: &Line) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Line) -> bool
[src]
fn ne(&self, __arg_0: &Line) -> bool
This method tests for !=
.
impl HeapSizeOf for Line
[src]
impl HeapSizeOf for Line
fn heap_size_of_children(&self) -> usize
[src]
fn heap_size_of_children(&self) -> usize
Measure the size of any heap-allocated structures that hang off this value, but not the space taken up by the value itself (i.e. what size_of:: measures, more or less); that space is handled by the implementation of HeapSizeOf for Box below. Read more
impl From<Label> for Line
[src]
impl From<Label> for Line
impl From<Assignment> for Line
[src]
impl From<Assignment> for Line
fn from(other: Assignment) -> Line
[src]
fn from(other: Assignment) -> Line
Performs the conversion.
impl From<Dim> for Line
[src]
impl From<Dim> for Line
impl From<FunctionCall> for Line
[src]
impl From<FunctionCall> for Line
fn from(other: FunctionCall) -> Line
[src]
fn from(other: FunctionCall) -> Line
Performs the conversion.
impl From<Statement> for Line
[src]
impl From<Statement> for Line
impl AstNode for Line
[src]
impl AstNode for Line
fn span(&self) -> ByteSpan
[src]
fn span(&self) -> ByteSpan
fn span_mut(&mut self) -> &mut ByteSpan
[src]
fn span_mut(&mut self) -> &mut ByteSpan
fn offset_inplace(&mut self, offset: ByteOffset)
[src]
fn offset_inplace(&mut self, offset: ByteOffset)