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
sourceimpl FieldRef
impl FieldRef
pub fn field_type(&self) -> &Type
pub fn field_name(&self) -> &str
Trait Implementations
sourceimpl<'de> Deserialize<'de> for FieldRef
impl<'de> Deserialize<'de> for FieldRef
sourcefn 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
sourceimpl From<ContextField> for FieldRef
impl From<ContextField> for FieldRef
sourcefn from(c: ContextField) -> Self
fn from(c: ContextField) -> Self
Converts to this type from the input type.
sourceimpl From<FoldSpecificField> for FieldRef
impl From<FoldSpecificField> for FieldRef
sourcefn from(f: FoldSpecificField) -> Self
fn from(f: FoldSpecificField) -> Self
Converts to this type from the input type.
impl 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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to key and return true if they are equal.