pub struct AlgorithmLine {
pub line_number: Option<u32>,
pub indent: u8,
pub line_type: AlgorithmLineType,
pub content: String,
pub comment: Option<String>,
}Expand description
A line of pseudocode in an algorithm.
Fields§
§line_number: Option<u32>Line number (auto-generated if not specified).
indent: u8Indentation level.
line_type: AlgorithmLineTypeLine type.
content: StringLine content.
comment: Option<String>Optional comment.
Trait Implementations§
Source§impl Clone for AlgorithmLine
impl Clone for AlgorithmLine
Source§fn clone(&self) -> AlgorithmLine
fn clone(&self) -> AlgorithmLine
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 AlgorithmLine
impl Debug for AlgorithmLine
Source§impl<'de> Deserialize<'de> for AlgorithmLine
impl<'de> Deserialize<'de> for AlgorithmLine
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for AlgorithmLine
impl PartialEq for AlgorithmLine
Source§impl Serialize for AlgorithmLine
impl Serialize for AlgorithmLine
impl Eq for AlgorithmLine
impl StructuralPartialEq for AlgorithmLine
Auto Trait Implementations§
impl Freeze for AlgorithmLine
impl RefUnwindSafe for AlgorithmLine
impl Send for AlgorithmLine
impl Sync for AlgorithmLine
impl Unpin for AlgorithmLine
impl UnsafeUnpin for AlgorithmLine
impl UnwindSafe for AlgorithmLine
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.