pub struct DefAlgoStmt {
pub name: String,
pub params: Vec<String>,
pub default_return: Option<AlgoReturn>,
pub cases: Vec<AlgoCase>,
pub line_file: LineFile,
}Fields§
§name: String§params: Vec<String>§default_return: Option<AlgoReturn>§cases: Vec<AlgoCase>§line_file: LineFileImplementations§
Source§impl DefAlgoStmt
impl DefAlgoStmt
Source§impl DefAlgoStmt
impl DefAlgoStmt
pub fn stmt_type_name(&self) -> String
Source§impl DefAlgoStmt
impl DefAlgoStmt
pub fn to_latex_string(&self) -> String
Trait Implementations§
Source§impl Clone for DefAlgoStmt
impl Clone for DefAlgoStmt
Source§fn clone(&self) -> DefAlgoStmt
fn clone(&self) -> DefAlgoStmt
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Display for DefAlgoStmt
impl Display for DefAlgoStmt
Source§impl From<DefAlgoStmt> for Stmt
impl From<DefAlgoStmt> for Stmt
Source§fn from(v: DefAlgoStmt) -> Self
fn from(v: DefAlgoStmt) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for DefAlgoStmt
impl RefUnwindSafe for DefAlgoStmt
impl !Send for DefAlgoStmt
impl !Sync for DefAlgoStmt
impl Unpin for DefAlgoStmt
impl UnsafeUnpin for DefAlgoStmt
impl UnwindSafe for DefAlgoStmt
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