pub struct TypeCondition {
pub on: Positioned<Name>,
}
Expand description
A type a fragment can apply to (on
followed by the type).
Fields§
§on: Positioned<Name>
The type this fragment applies to.
Trait Implementations§
Source§impl AstPositionExt for TypeCondition
impl AstPositionExt for TypeCondition
Source§fn default_position(self) -> Positioned<Self>
fn default_position(self) -> Positioned<Self>
Create a positioned version of this AST node with the default position (0:0).
Source§fn with_position(self, pos: Pos) -> Positioned<Self>
fn with_position(self, pos: Pos) -> Positioned<Self>
Create a positioned version of this AST node with the given position.
Source§impl Clone for TypeCondition
impl Clone for TypeCondition
Source§fn clone(&self) -> TypeCondition
fn clone(&self) -> TypeCondition
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 Debug for TypeCondition
impl Debug for TypeCondition
Source§impl<'de> Deserialize<'de> for TypeCondition
impl<'de> Deserialize<'de> for TypeCondition
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<TypeCondition, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<TypeCondition, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl IntoAst<TypeCondition> for TypeCondition
impl IntoAst<TypeCondition> for TypeCondition
Source§fn into_ast(self) -> TypeCondition
fn into_ast(self) -> TypeCondition
Returns the input value unchanged.
Source§impl Serialize for TypeCondition
impl Serialize for TypeCondition
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for TypeCondition
impl RefUnwindSafe for TypeCondition
impl Send for TypeCondition
impl Sync for TypeCondition
impl Unpin for TypeCondition
impl UnwindSafe for TypeCondition
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