Struct parser_database::walkers::TypedFieldWalker
source · pub struct TypedFieldWalker<'db> { /* private fields */ }
Expand description
A model or composite type field of a scalar type.
Implementations§
source§impl<'db> TypedFieldWalker<'db>
impl<'db> TypedFieldWalker<'db>
sourcepub fn scalar_type(self) -> Option<ScalarType>
pub fn scalar_type(self) -> Option<ScalarType>
The type of the field in case it is a scalar type (not an enum, not a composite type).
Trait Implementations§
source§impl<'db> Clone for TypedFieldWalker<'db>
impl<'db> Clone for TypedFieldWalker<'db>
source§fn clone(&self) -> TypedFieldWalker<'db>
fn clone(&self) -> TypedFieldWalker<'db>
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<'db> From<Walker<'db, (CompositeTypeId, FieldId)>> for TypedFieldWalker<'db>
impl<'db> From<Walker<'db, (CompositeTypeId, FieldId)>> for TypedFieldWalker<'db>
source§fn from(w: CompositeTypeFieldWalker<'db>) -> Self
fn from(w: CompositeTypeFieldWalker<'db>) -> Self
Converts to this type from the input type.
source§impl<'db> From<Walker<'db, ScalarFieldId>> for TypedFieldWalker<'db>
impl<'db> From<Walker<'db, ScalarFieldId>> for TypedFieldWalker<'db>
source§fn from(w: ScalarFieldWalker<'db>) -> Self
fn from(w: ScalarFieldWalker<'db>) -> Self
Converts to this type from the input type.
impl<'db> Copy for TypedFieldWalker<'db>
Auto Trait Implementations§
impl<'db> RefUnwindSafe for TypedFieldWalker<'db>
impl<'db> Send for TypedFieldWalker<'db>
impl<'db> Sync for TypedFieldWalker<'db>
impl<'db> Unpin for TypedFieldWalker<'db>
impl<'db> UnwindSafe for TypedFieldWalker<'db>
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