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
pub fn iter(&self) -> TypeWrappersIter ⓘ
Trait Implementations§
Source§impl Debug for TypeWrappers
impl Debug 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
Auto Trait Implementations§
impl Freeze for TypeWrappers
impl RefUnwindSafe for TypeWrappers
impl Send for TypeWrappers
impl Sync for TypeWrappers
impl Unpin 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