Enum trustfall_core::ir::FieldRef
source · #[non_exhaustive]pub enum FieldRef {
ContextField(ContextField),
FoldSpecificField(FoldSpecificField),
}
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
ContextField(ContextField)
FoldSpecificField(FoldSpecificField)
Implementations§
source§impl FieldRef
impl FieldRef
pub fn field_type(&self) -> &Type
pub fn field_name(&self) -> &str
Trait Implementations§
source§impl<'de> Deserialize<'de> for FieldRef
impl<'de> Deserialize<'de> for FieldRef
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 From<ContextField> for FieldRef
impl From<ContextField> for FieldRef
source§fn from(c: ContextField) -> Self
fn from(c: ContextField) -> Self
Converts to this type from the input type.
source§impl From<FoldSpecificField> for FieldRef
impl From<FoldSpecificField> for FieldRef
source§fn from(f: FoldSpecificField) -> Self
fn from(f: FoldSpecificField) -> Self
Converts to this type from the input type.
source§impl NamedTypedValue for FieldRef
impl NamedTypedValue for FieldRef
source§impl Ord for FieldRef
impl Ord for FieldRef
source§impl PartialEq for FieldRef
impl PartialEq for FieldRef
source§impl PartialOrd for FieldRef
impl PartialOrd for FieldRef
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 moreimpl Eq for FieldRef
impl StructuralEq for FieldRef
impl StructuralPartialEq for FieldRef
Auto Trait Implementations§
impl RefUnwindSafe for FieldRef
impl Send for FieldRef
impl Sync for FieldRef
impl Unpin for FieldRef
impl UnwindSafe for FieldRef
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 Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.