pub enum FipsSymbolKind {
Constant(FipsValue),
LocalVariable(FipsType),
ParticleMember(MemberID),
Function(FunctionID),
}Expand description
Different kinds of symbols
Variants§
Constant(FipsValue)
A symbolic constant
LocalVariable(FipsType)
A local variable
ParticleMember(MemberID)
A particle member (we don’t need the particle ID since a single thread only works on one type of particle)
Function(FunctionID)
A global function
Implementations§
Source§impl FipsSymbolKind
impl FipsSymbolKind
Sourcepub fn from_subsitution(val: &SubstitutionValue) -> Self
pub fn from_subsitution(val: &SubstitutionValue) -> Self
Crate new symbol from substitution value
pub fn from_f64(val: f64) -> Self
Trait Implementations§
Source§impl Clone for FipsSymbolKind
impl Clone for FipsSymbolKind
Source§fn clone(&self) -> FipsSymbolKind
fn clone(&self) -> FipsSymbolKind
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 moreAuto Trait Implementations§
impl Freeze for FipsSymbolKind
impl RefUnwindSafe for FipsSymbolKind
impl Send for FipsSymbolKind
impl Sync for FipsSymbolKind
impl Unpin for FipsSymbolKind
impl UnwindSafe for FipsSymbolKind
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<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more