pub enum ParseMode {
Strict,
AllowTrailingStmtWithoutSemi,
Expression,
ExpressionAllowTrailingStmtWithoutSemi,
}Expand description
Parser behavior presets for MEL files, snippets, and Maya Expression Editor source.
Variants§
Strict
Standard MEL parsing with required statement semicolons.
AllowTrailingStmtWithoutSemi
Standard MEL parsing that accepts one top-level EOF trailing statement without ;.
Expression
Maya Expression Editor full-source parsing with required statement semicolons.
ExpressionAllowTrailingStmtWithoutSemi
Maya Expression Editor full-source parsing with one top-level EOF trailing statement allowed.
Implementations§
Source§impl ParseMode
impl ParseMode
pub const fn is_expression_syntax(self) -> bool
pub const fn allows_trailing_top_level_stmt_without_semi(self) -> bool
Trait Implementations§
impl Copy for ParseMode
impl Eq for ParseMode
impl StructuralPartialEq for ParseMode
Auto Trait Implementations§
impl Freeze for ParseMode
impl RefUnwindSafe for ParseMode
impl Send for ParseMode
impl Sync for ParseMode
impl Unpin for ParseMode
impl UnsafeUnpin for ParseMode
impl UnwindSafe for ParseMode
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