pub struct TypeWrappers(/* private fields */);Expand description
GraphQL wrappers encoded into a single u32
Bit 0: Whether the inner type is null Bits 1..5: Number of list wrappers Bits 5..21: List wrappers, where 0 is nullable 1 is non-null The rest: dead bits
Implementations§
Source§impl TypeWrappers
impl TypeWrappers
pub fn none() -> Self
pub fn wrap_list(&self) -> Self
pub fn wrap_non_null(&self) -> Self
Sourcepub fn iter(&self) -> TypeWrappersIter ⓘ
pub fn iter(&self) -> TypeWrappersIter ⓘ
Iterator over wrapper types from outermost to innermost
Trait Implementations§
Source§impl Clone for TypeWrappers
impl Clone for TypeWrappers
Source§fn clone(&self) -> TypeWrappers
fn clone(&self) -> TypeWrappers
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for TypeWrappers
Source§impl Debug for TypeWrappers
impl Debug for TypeWrappers
Source§impl Default for TypeWrappers
impl Default for TypeWrappers
Source§fn default() -> TypeWrappers
fn default() -> TypeWrappers
Returns the “default value” for a type. Read more
impl Eq for TypeWrappers
Source§impl FromIterator<WrappingType> for TypeWrappers
impl FromIterator<WrappingType> for TypeWrappers
Source§fn from_iter<T: IntoIterator<Item = WrappingType>>(iter: T) -> Self
fn from_iter<T: IntoIterator<Item = WrappingType>>(iter: T) -> Self
Creates a value from an iterator. Read more
Source§impl PartialEq for TypeWrappers
impl PartialEq for TypeWrappers
impl StructuralPartialEq for TypeWrappers
Auto Trait Implementations§
impl Freeze for TypeWrappers
impl RefUnwindSafe for TypeWrappers
impl Send for TypeWrappers
impl Sync for TypeWrappers
impl Unpin for TypeWrappers
impl UnsafeUnpin for TypeWrappers
impl UnwindSafe for TypeWrappers
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.