Struct apollo_parser::ast::BooleanValue
source · [−]pub struct BooleanValue { /* private fields */ }
Implementations
sourceimpl BooleanValue
impl BooleanValue
pub fn true_token(&self) -> Option<SyntaxToken<GraphQLLanguage>>
pub fn false_token(&self) -> Option<SyntaxToken<GraphQLLanguage>>
Trait Implementations
sourceimpl AstNode for BooleanValue
impl AstNode for BooleanValue
fn can_cast(kind: SyntaxKind) -> bool
fn cast(syntax: SyntaxNode<GraphQLLanguage>) -> Option<Self>
fn syntax(&self) -> &SyntaxNode<GraphQLLanguage>
fn clone_for_update(&self) -> Self where
Self: Sized,
fn clone_subtree(&self) -> Self where
Self: Sized,
sourceimpl Clone for BooleanValue
impl Clone for BooleanValue
sourcefn clone(&self) -> BooleanValue
fn clone(&self) -> BooleanValue
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for BooleanValue
impl Debug for BooleanValue
sourceimpl Display for BooleanValue
impl Display for BooleanValue
sourceimpl From<BooleanValue> for Value
impl From<BooleanValue> for Value
sourcefn from(node: BooleanValue) -> Value
fn from(node: BooleanValue) -> Value
Performs the conversion.
sourceimpl Hash for BooleanValue
impl Hash for BooleanValue
sourceimpl PartialEq<BooleanValue> for BooleanValue
impl PartialEq<BooleanValue> for BooleanValue
sourcefn eq(&self, other: &BooleanValue) -> bool
fn eq(&self, other: &BooleanValue) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &BooleanValue) -> bool
fn ne(&self, other: &BooleanValue) -> bool
This method tests for !=
.
impl Eq for BooleanValue
impl StructuralEq for BooleanValue
impl StructuralPartialEq for BooleanValue
Auto Trait Implementations
impl !RefUnwindSafe for BooleanValue
impl !Send for BooleanValue
impl !Sync for BooleanValue
impl Unpin for BooleanValue
impl !UnwindSafe for BooleanValue
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more