pub enum NonSemantic {
Source {
name: String,
file_name: String,
line: u32,
col: u32,
},
BeginCall {
name: String,
line: u32,
col: u32,
},
EndCall,
Line {
line: u32,
col: u32,
},
Print {
format_string: String,
args: Vec<Variable>,
},
Comment {
content: String,
},
}
Expand description
Operations that don’t change the semantics of the kernel. In other words, operations that do not
perform any computation, if they run at all. i.e. println
, comments and debug symbols.
Can be safely removed or ignored without changing the kernel result.
Variants§
Trait Implementations§
Source§impl Clone for NonSemantic
impl Clone for NonSemantic
Source§fn clone(&self) -> NonSemantic
fn clone(&self) -> NonSemantic
Returns a copy 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 NonSemantic
impl Debug for NonSemantic
Source§impl<'de> Deserialize<'de> for NonSemantic
impl<'de> Deserialize<'de> for NonSemantic
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 Display for NonSemantic
impl Display for NonSemantic
Source§impl From<NonSemantic> for Instruction
impl From<NonSemantic> for Instruction
Source§fn from(value: NonSemantic) -> Self
fn from(value: NonSemantic) -> Self
Converts to this type from the input type.
Source§impl From<NonSemantic> for Operation
impl From<NonSemantic> for Operation
Source§fn from(val: NonSemantic) -> Self
fn from(val: NonSemantic) -> Self
Converts to this type from the input type.
Source§impl PartialEq for NonSemantic
impl PartialEq for NonSemantic
Source§impl Serialize for NonSemantic
impl Serialize for NonSemantic
impl StructuralPartialEq for NonSemantic
Auto Trait Implementations§
impl Freeze for NonSemantic
impl RefUnwindSafe for NonSemantic
impl Send for NonSemantic
impl Sync for NonSemantic
impl Unpin for NonSemantic
impl UnwindSafe for NonSemantic
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