pub enum FieldType {
Scalar(ScalarType),
List(Box<FieldType>),
Named(TypeSourceKey),
}Expand description
Logical type reference in a proposal fragment.
Variants§
Scalar(ScalarType)
Exact built-in scalar contract.
List(Box<FieldType>)
Ordered repeated values with one exact element contract.
Named(TypeSourceKey)
Named record, enum, newtype, or collection definition.
Implementations§
Source§impl FieldType
impl FieldType
Sourcepub fn append_named_type_dependencies(&self, pending: &mut Vec<TypeSourceKey>)
pub fn append_named_type_dependencies(&self, pending: &mut Vec<TypeSourceKey>)
Append named-type references through inline list layers.
This preserves the caller’s existing entries and does not resolve the referenced definition or compute its transitive dependency closure.
Trait Implementations§
impl Eq for FieldType
impl StructuralPartialEq for FieldType
Auto Trait Implementations§
impl Freeze for FieldType
impl RefUnwindSafe for FieldType
impl Send for FieldType
impl Sync for FieldType
impl Unpin for FieldType
impl UnsafeUnpin for FieldType
impl UnwindSafe for FieldType
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.