pub struct Algorithm {
pub id: Option<String>,
pub name: Option<String>,
pub number: Option<String>,
pub caption: Option<String>,
pub inputs: Vec<AlgorithmParam>,
pub outputs: Vec<AlgorithmParam>,
pub body: Vec<AlgorithmLine>,
pub line_numbers: bool,
pub start_line: Option<u32>,
}Expand description
A pseudocode algorithm block.
Fields§
§id: Option<String>Optional unique identifier.
name: Option<String>Algorithm name/title.
number: Option<String>Algorithm number.
caption: Option<String>Caption/description.
inputs: Vec<AlgorithmParam>Input parameters.
outputs: Vec<AlgorithmParam>Output parameters.
body: Vec<AlgorithmLine>Algorithm body (pseudocode lines).
line_numbers: boolWhether to show line numbers.
start_line: Option<u32>Starting line number (default: 1).
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Algorithm
impl<'de> Deserialize<'de> for Algorithm
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
impl Eq for Algorithm
impl StructuralPartialEq for Algorithm
Auto Trait Implementations§
impl Freeze for Algorithm
impl RefUnwindSafe for Algorithm
impl Send for Algorithm
impl Sync for Algorithm
impl Unpin for Algorithm
impl UnsafeUnpin for Algorithm
impl UnwindSafe for Algorithm
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.