pub enum ParsedLine {
Empty(EmptyLineNode),
Comment(CommentNode),
Label(LabelNode),
Line(TxtLine),
}Available on crate features
artemis and artemis-panmimisoft only.Expand description
Represents a parsed line in Artemis TXT scripts.
Variants§
Empty(EmptyLineNode)
Empty line.
Comment(CommentNode)
Comment line.
Label(LabelNode)
Label line.
Line(TxtLine)
Line
Implementations§
Source§impl ParsedLine
impl ParsedLine
Sourcepub fn push(&mut self, node: TxtLineNode)
pub fn push(&mut self, node: TxtLineNode)
Push a node to the line.
Sourcepub fn insert(&mut self, index: usize, node: TxtLineNode)
pub fn insert(&mut self, index: usize, node: TxtLineNode)
Inserts a node at the specified index in the line.
Sourcepub fn remove(&mut self, index: usize) -> Option<TxtLineNode>
pub fn remove(&mut self, index: usize) -> Option<TxtLineNode>
Remove a node at the specified index from the line.
Trait Implementations§
Source§impl Clone for ParsedLine
impl Clone for ParsedLine
Source§fn clone(&self) -> ParsedLine
fn clone(&self) -> ParsedLine
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ParsedLine
impl Debug for ParsedLine
Source§impl Node for ParsedLine
impl Node for ParsedLine
Source§impl PartialEq for ParsedLine
impl PartialEq for ParsedLine
impl StructuralPartialEq for ParsedLine
Auto Trait Implementations§
impl Freeze for ParsedLine
impl RefUnwindSafe for ParsedLine
impl Send for ParsedLine
impl Sync for ParsedLine
impl Unpin for ParsedLine
impl UnwindSafe for ParsedLine
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more