Enum uiua::FunctionId
source · pub enum FunctionId {
Primitive(Primitive),
Named(Ident),
Anonymous(CodeSpan),
Main,
// some variants omitted
}Expand description
A Uiua function id
Variants§
Primitive(Primitive)
Just a primitive
Named(Ident)
A named function
Anonymous(CodeSpan)
An anonymous function
Main
The top-level function
Trait Implementations§
source§impl Clone for FunctionId
impl Clone for FunctionId
source§fn clone(&self) -> FunctionId
fn clone(&self) -> FunctionId
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 FunctionId
impl Debug for FunctionId
source§impl<'de> Deserialize<'de> for FunctionId
impl<'de> Deserialize<'de> for FunctionId
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 FunctionId
impl Display for FunctionId
source§impl From<EcoString> for FunctionId
impl From<EcoString> for FunctionId
source§impl From<Primitive> for FunctionId
impl From<Primitive> for FunctionId
source§impl Hash for FunctionId
impl Hash for FunctionId
source§impl Ord for FunctionId
impl Ord for FunctionId
source§fn cmp(&self, other: &FunctionId) -> Ordering
fn cmp(&self, other: &FunctionId) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq<&str> for FunctionId
impl PartialEq<&str> for FunctionId
source§impl PartialEq for FunctionId
impl PartialEq for FunctionId
source§fn eq(&self, other: &FunctionId) -> bool
fn eq(&self, other: &FunctionId) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl PartialOrd for FunctionId
impl PartialOrd for FunctionId
source§fn partial_cmp(&self, other: &FunctionId) -> Option<Ordering>
fn partial_cmp(&self, other: &FunctionId) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moresource§impl Serialize for FunctionId
impl Serialize for FunctionId
impl Eq for FunctionId
impl StructuralPartialEq for FunctionId
Auto Trait Implementations§
impl RefUnwindSafe for FunctionId
impl Send for FunctionId
impl Sync for FunctionId
impl Unpin for FunctionId
impl UnwindSafe for FunctionId
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
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more