pub struct Type<'a>(/* private fields */);
Implementations§
Source§impl<'a> Type<'a>
impl<'a> Type<'a>
pub fn name(&self) -> &'a str
pub fn is_list(&self) -> bool
pub fn is_non_null(&self) -> bool
Sourcepub fn wrappers(&self) -> TypeWrappersIter ⓘ
pub fn wrappers(&self) -> TypeWrappersIter ⓘ
The wrapper types from the outermost to innermost
Sourcepub fn definitions(&self) -> NamedTypeDefinitions<'a> ⓘ
pub fn definitions(&self) -> NamedTypeDefinitions<'a> ⓘ
Returns any definitions of the inner named type
Note that this iterator scales linearly with the number of types present in a schema, so should not be used if large schemas are expected.
Trait Implementations§
impl<'a> Copy for Type<'a>
impl Eq for Type<'_>
Auto Trait Implementations§
impl<'a> Freeze for Type<'a>
impl<'a> RefUnwindSafe for Type<'a>
impl<'a> Send for Type<'a>
impl<'a> Sync for Type<'a>
impl<'a> Unpin for Type<'a>
impl<'a> UnwindSafe for Type<'a>
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.