pub struct Node<T>where
T: NodeContent,{
pub content: T,
pub span: Option<NodeSpan>,
}
Expand description
A syntax node with span information
Fields§
§content: T
Contents of this syntax node
span: Option<NodeSpan>
Span in the input this node was parsed from
Implementations§
source§impl<T> Node<T>where
T: NodeContent,
impl<T> Node<T>where
T: NodeContent,
sourcepub fn new(content: T, span: Option<NodeSpan>) -> Node<T>
pub fn new(content: T, span: Option<NodeSpan>) -> Node<T>
Create a new syntax node with span information
sourcepub fn into_inner(self) -> T
pub fn into_inner(self) -> T
Return the wrapped syntax node, discarding the span information
sourcepub fn map<U>(self, f: impl FnOnce(T) -> U) -> Node<U>where
U: NodeContent,
pub fn map<U>(self, f: impl FnOnce(T) -> U) -> Node<U>where
U: NodeContent,
Map this content of this node into a new node
sourcepub fn map_spanned<U>(self, f: impl FnOnce(Node<T>) -> U) -> Node<U>where
U: NodeContent,
pub fn map_spanned<U>(self, f: impl FnOnce(Node<T>) -> U) -> Node<U>where
U: NodeContent,
Map this content of this node into a new node with the same span
Trait Implementations§
source§impl<T> Deref for Node<T>where
T: NodeContent,
impl<T> Deref for Node<T>where
T: NodeContent,
source§impl<T> DerefMut for Node<T>where
T: NodeContent,
impl<T> DerefMut for Node<T>where
T: NodeContent,
source§impl<'de, T> Deserialize<'de> for Node<T>where
T: NodeContent + Deserialize<'de>,
impl<'de, T> Deserialize<'de> for Node<T>where
T: NodeContent + Deserialize<'de>,
source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<Node<T>, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<Node<T>, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl From<Node<ArraySpecifierData>> for ArraySpecifierData
impl From<Node<ArraySpecifierData>> for ArraySpecifierData
source§fn from(node: Node<ArraySpecifierData>) -> ArraySpecifierData
fn from(node: Node<ArraySpecifierData>) -> ArraySpecifierData
Converts to this type from the input type.
source§impl From<Node<ArraySpecifierDimensionData>> for ArraySpecifierDimensionData
impl From<Node<ArraySpecifierDimensionData>> for ArraySpecifierDimensionData
source§fn from(node: Node<ArraySpecifierDimensionData>) -> ArraySpecifierDimensionData
fn from(node: Node<ArraySpecifierDimensionData>) -> ArraySpecifierDimensionData
Converts to this type from the input type.
source§impl From<Node<ArrayedIdentifierData>> for ArrayedIdentifierData
impl From<Node<ArrayedIdentifierData>> for ArrayedIdentifierData
source§fn from(node: Node<ArrayedIdentifierData>) -> ArrayedIdentifierData
fn from(node: Node<ArrayedIdentifierData>) -> ArrayedIdentifierData
Converts to this type from the input type.
source§impl From<Node<AssignmentOpData>> for AssignmentOpData
impl From<Node<AssignmentOpData>> for AssignmentOpData
source§fn from(node: Node<AssignmentOpData>) -> AssignmentOpData
fn from(node: Node<AssignmentOpData>) -> AssignmentOpData
Converts to this type from the input type.
source§impl From<Node<BinaryOpData>> for BinaryOpData
impl From<Node<BinaryOpData>> for BinaryOpData
source§fn from(node: Node<BinaryOpData>) -> BinaryOpData
fn from(node: Node<BinaryOpData>) -> BinaryOpData
Converts to this type from the input type.
source§impl From<Node<CaseLabelData>> for CaseLabelData
impl From<Node<CaseLabelData>> for CaseLabelData
source§fn from(node: Node<CaseLabelData>) -> CaseLabelData
fn from(node: Node<CaseLabelData>) -> CaseLabelData
Converts to this type from the input type.
source§impl From<Node<CommentData>> for CommentData
impl From<Node<CommentData>> for CommentData
source§fn from(node: Node<CommentData>) -> CommentData
fn from(node: Node<CommentData>) -> CommentData
Converts to this type from the input type.
source§impl From<Node<CompoundStatementData>> for CompoundStatementData
impl From<Node<CompoundStatementData>> for CompoundStatementData
source§fn from(node: Node<CompoundStatementData>) -> CompoundStatementData
fn from(node: Node<CompoundStatementData>) -> CompoundStatementData
Converts to this type from the input type.
source§impl From<Node<ConditionData>> for ConditionData
impl From<Node<ConditionData>> for ConditionData
source§fn from(node: Node<ConditionData>) -> ConditionData
fn from(node: Node<ConditionData>) -> ConditionData
Converts to this type from the input type.
source§impl From<Node<DeclarationData>> for DeclarationData
impl From<Node<DeclarationData>> for DeclarationData
source§fn from(node: Node<DeclarationData>) -> DeclarationData
fn from(node: Node<DeclarationData>) -> DeclarationData
Converts to this type from the input type.
source§impl From<Node<ExprStatementData>> for ExprStatementData
impl From<Node<ExprStatementData>> for ExprStatementData
source§fn from(node: Node<ExprStatementData>) -> ExprStatementData
fn from(node: Node<ExprStatementData>) -> ExprStatementData
Converts to this type from the input type.
source§impl From<Node<ExternalDeclarationData>> for ExternalDeclarationData
impl From<Node<ExternalDeclarationData>> for ExternalDeclarationData
source§fn from(node: Node<ExternalDeclarationData>) -> ExternalDeclarationData
fn from(node: Node<ExternalDeclarationData>) -> ExternalDeclarationData
Converts to this type from the input type.
source§impl From<Node<ForInitStatementData>> for ForInitStatementData
impl From<Node<ForInitStatementData>> for ForInitStatementData
source§fn from(node: Node<ForInitStatementData>) -> ForInitStatementData
fn from(node: Node<ForInitStatementData>) -> ForInitStatementData
Converts to this type from the input type.
source§impl From<Node<ForRestStatementData>> for ForRestStatementData
impl From<Node<ForRestStatementData>> for ForRestStatementData
source§fn from(node: Node<ForRestStatementData>) -> ForRestStatementData
fn from(node: Node<ForRestStatementData>) -> ForRestStatementData
Converts to this type from the input type.
source§impl From<Node<FullySpecifiedTypeData>> for FullySpecifiedTypeData
impl From<Node<FullySpecifiedTypeData>> for FullySpecifiedTypeData
source§fn from(node: Node<FullySpecifiedTypeData>) -> FullySpecifiedTypeData
fn from(node: Node<FullySpecifiedTypeData>) -> FullySpecifiedTypeData
Converts to this type from the input type.
source§impl From<Node<FunIdentifierData>> for FunIdentifierData
impl From<Node<FunIdentifierData>> for FunIdentifierData
source§fn from(node: Node<FunIdentifierData>) -> FunIdentifierData
fn from(node: Node<FunIdentifierData>) -> FunIdentifierData
Converts to this type from the input type.
source§impl From<Node<FunctionDefinitionData>> for FunctionDefinitionData
impl From<Node<FunctionDefinitionData>> for FunctionDefinitionData
source§fn from(node: Node<FunctionDefinitionData>) -> FunctionDefinitionData
fn from(node: Node<FunctionDefinitionData>) -> FunctionDefinitionData
Converts to this type from the input type.
source§impl From<Node<FunctionParameterDeclarationData>> for FunctionParameterDeclarationData
impl From<Node<FunctionParameterDeclarationData>> for FunctionParameterDeclarationData
source§fn from(
node: Node<FunctionParameterDeclarationData>,
) -> FunctionParameterDeclarationData
fn from( node: Node<FunctionParameterDeclarationData>, ) -> FunctionParameterDeclarationData
Converts to this type from the input type.
source§impl From<Node<FunctionParameterDeclaratorData>> for FunctionParameterDeclaratorData
impl From<Node<FunctionParameterDeclaratorData>> for FunctionParameterDeclaratorData
source§fn from(
node: Node<FunctionParameterDeclaratorData>,
) -> FunctionParameterDeclaratorData
fn from( node: Node<FunctionParameterDeclaratorData>, ) -> FunctionParameterDeclaratorData
Converts to this type from the input type.
source§impl From<Node<FunctionPrototypeData>> for FunctionPrototypeData
impl From<Node<FunctionPrototypeData>> for FunctionPrototypeData
source§fn from(node: Node<FunctionPrototypeData>) -> FunctionPrototypeData
fn from(node: Node<FunctionPrototypeData>) -> FunctionPrototypeData
Converts to this type from the input type.
source§impl From<Node<IdentifierData>> for IdentifierData
impl From<Node<IdentifierData>> for IdentifierData
source§fn from(node: Node<IdentifierData>) -> IdentifierData
fn from(node: Node<IdentifierData>) -> IdentifierData
Converts to this type from the input type.
source§impl From<Node<InitDeclaratorListData>> for InitDeclaratorListData
impl From<Node<InitDeclaratorListData>> for InitDeclaratorListData
source§fn from(node: Node<InitDeclaratorListData>) -> InitDeclaratorListData
fn from(node: Node<InitDeclaratorListData>) -> InitDeclaratorListData
Converts to this type from the input type.
source§impl From<Node<InitializerData>> for InitializerData
impl From<Node<InitializerData>> for InitializerData
source§fn from(node: Node<InitializerData>) -> InitializerData
fn from(node: Node<InitializerData>) -> InitializerData
Converts to this type from the input type.
source§impl From<Node<InterpolationQualifierData>> for InterpolationQualifierData
impl From<Node<InterpolationQualifierData>> for InterpolationQualifierData
source§fn from(node: Node<InterpolationQualifierData>) -> InterpolationQualifierData
fn from(node: Node<InterpolationQualifierData>) -> InterpolationQualifierData
Converts to this type from the input type.
source§impl From<Node<IterationStatementData>> for IterationStatementData
impl From<Node<IterationStatementData>> for IterationStatementData
source§fn from(node: Node<IterationStatementData>) -> IterationStatementData
fn from(node: Node<IterationStatementData>) -> IterationStatementData
Converts to this type from the input type.
source§impl From<Node<JumpStatementData>> for JumpStatementData
impl From<Node<JumpStatementData>> for JumpStatementData
source§fn from(node: Node<JumpStatementData>) -> JumpStatementData
fn from(node: Node<JumpStatementData>) -> JumpStatementData
Converts to this type from the input type.
source§impl From<Node<LayoutQualifierData>> for LayoutQualifierData
impl From<Node<LayoutQualifierData>> for LayoutQualifierData
source§fn from(node: Node<LayoutQualifierData>) -> LayoutQualifierData
fn from(node: Node<LayoutQualifierData>) -> LayoutQualifierData
Converts to this type from the input type.
source§impl From<Node<LayoutQualifierSpecData>> for LayoutQualifierSpecData
impl From<Node<LayoutQualifierSpecData>> for LayoutQualifierSpecData
source§fn from(node: Node<LayoutQualifierSpecData>) -> LayoutQualifierSpecData
fn from(node: Node<LayoutQualifierSpecData>) -> LayoutQualifierSpecData
Converts to this type from the input type.
source§impl From<Node<PrecisionQualifierData>> for PrecisionQualifierData
impl From<Node<PrecisionQualifierData>> for PrecisionQualifierData
source§fn from(node: Node<PrecisionQualifierData>) -> PrecisionQualifierData
fn from(node: Node<PrecisionQualifierData>) -> PrecisionQualifierData
Converts to this type from the input type.
source§impl From<Node<PreprocessorData>> for PreprocessorData
impl From<Node<PreprocessorData>> for PreprocessorData
source§fn from(node: Node<PreprocessorData>) -> PreprocessorData
fn from(node: Node<PreprocessorData>) -> PreprocessorData
Converts to this type from the input type.
source§impl From<Node<PreprocessorDefineData>> for PreprocessorDefineData
impl From<Node<PreprocessorDefineData>> for PreprocessorDefineData
source§fn from(node: Node<PreprocessorDefineData>) -> PreprocessorDefineData
fn from(node: Node<PreprocessorDefineData>) -> PreprocessorDefineData
Converts to this type from the input type.
source§impl From<Node<PreprocessorElseIfData>> for PreprocessorElseIfData
impl From<Node<PreprocessorElseIfData>> for PreprocessorElseIfData
source§fn from(node: Node<PreprocessorElseIfData>) -> PreprocessorElseIfData
fn from(node: Node<PreprocessorElseIfData>) -> PreprocessorElseIfData
Converts to this type from the input type.
source§impl From<Node<PreprocessorErrorData>> for PreprocessorErrorData
impl From<Node<PreprocessorErrorData>> for PreprocessorErrorData
source§fn from(node: Node<PreprocessorErrorData>) -> PreprocessorErrorData
fn from(node: Node<PreprocessorErrorData>) -> PreprocessorErrorData
Converts to this type from the input type.
source§impl From<Node<PreprocessorExtensionBehaviorData>> for PreprocessorExtensionBehaviorData
impl From<Node<PreprocessorExtensionBehaviorData>> for PreprocessorExtensionBehaviorData
source§fn from(
node: Node<PreprocessorExtensionBehaviorData>,
) -> PreprocessorExtensionBehaviorData
fn from( node: Node<PreprocessorExtensionBehaviorData>, ) -> PreprocessorExtensionBehaviorData
Converts to this type from the input type.
source§impl From<Node<PreprocessorExtensionData>> for PreprocessorExtensionData
impl From<Node<PreprocessorExtensionData>> for PreprocessorExtensionData
source§fn from(node: Node<PreprocessorExtensionData>) -> PreprocessorExtensionData
fn from(node: Node<PreprocessorExtensionData>) -> PreprocessorExtensionData
Converts to this type from the input type.
source§impl From<Node<PreprocessorExtensionNameData>> for PreprocessorExtensionNameData
impl From<Node<PreprocessorExtensionNameData>> for PreprocessorExtensionNameData
source§fn from(
node: Node<PreprocessorExtensionNameData>,
) -> PreprocessorExtensionNameData
fn from( node: Node<PreprocessorExtensionNameData>, ) -> PreprocessorExtensionNameData
Converts to this type from the input type.
source§impl From<Node<PreprocessorIfData>> for PreprocessorIfData
impl From<Node<PreprocessorIfData>> for PreprocessorIfData
source§fn from(node: Node<PreprocessorIfData>) -> PreprocessorIfData
fn from(node: Node<PreprocessorIfData>) -> PreprocessorIfData
Converts to this type from the input type.
source§impl From<Node<PreprocessorIfDefData>> for PreprocessorIfDefData
impl From<Node<PreprocessorIfDefData>> for PreprocessorIfDefData
source§fn from(node: Node<PreprocessorIfDefData>) -> PreprocessorIfDefData
fn from(node: Node<PreprocessorIfDefData>) -> PreprocessorIfDefData
Converts to this type from the input type.
source§impl From<Node<PreprocessorIfNDefData>> for PreprocessorIfNDefData
impl From<Node<PreprocessorIfNDefData>> for PreprocessorIfNDefData
source§fn from(node: Node<PreprocessorIfNDefData>) -> PreprocessorIfNDefData
fn from(node: Node<PreprocessorIfNDefData>) -> PreprocessorIfNDefData
Converts to this type from the input type.
source§impl From<Node<PreprocessorIncludeData>> for PreprocessorIncludeData
impl From<Node<PreprocessorIncludeData>> for PreprocessorIncludeData
source§fn from(node: Node<PreprocessorIncludeData>) -> PreprocessorIncludeData
fn from(node: Node<PreprocessorIncludeData>) -> PreprocessorIncludeData
Converts to this type from the input type.
source§impl From<Node<PreprocessorLineData>> for PreprocessorLineData
impl From<Node<PreprocessorLineData>> for PreprocessorLineData
source§fn from(node: Node<PreprocessorLineData>) -> PreprocessorLineData
fn from(node: Node<PreprocessorLineData>) -> PreprocessorLineData
Converts to this type from the input type.
source§impl From<Node<PreprocessorPragmaData>> for PreprocessorPragmaData
impl From<Node<PreprocessorPragmaData>> for PreprocessorPragmaData
source§fn from(node: Node<PreprocessorPragmaData>) -> PreprocessorPragmaData
fn from(node: Node<PreprocessorPragmaData>) -> PreprocessorPragmaData
Converts to this type from the input type.
source§impl From<Node<PreprocessorUndefData>> for PreprocessorUndefData
impl From<Node<PreprocessorUndefData>> for PreprocessorUndefData
source§fn from(node: Node<PreprocessorUndefData>) -> PreprocessorUndefData
fn from(node: Node<PreprocessorUndefData>) -> PreprocessorUndefData
Converts to this type from the input type.
source§impl From<Node<PreprocessorVersionData>> for PreprocessorVersionData
impl From<Node<PreprocessorVersionData>> for PreprocessorVersionData
source§fn from(node: Node<PreprocessorVersionData>) -> PreprocessorVersionData
fn from(node: Node<PreprocessorVersionData>) -> PreprocessorVersionData
Converts to this type from the input type.
source§impl From<Node<PreprocessorVersionProfileData>> for PreprocessorVersionProfileData
impl From<Node<PreprocessorVersionProfileData>> for PreprocessorVersionProfileData
source§fn from(
node: Node<PreprocessorVersionProfileData>,
) -> PreprocessorVersionProfileData
fn from( node: Node<PreprocessorVersionProfileData>, ) -> PreprocessorVersionProfileData
Converts to this type from the input type.
source§impl From<Node<SelectionRestStatementData>> for SelectionRestStatementData
impl From<Node<SelectionRestStatementData>> for SelectionRestStatementData
source§fn from(node: Node<SelectionRestStatementData>) -> SelectionRestStatementData
fn from(node: Node<SelectionRestStatementData>) -> SelectionRestStatementData
Converts to this type from the input type.
source§impl From<Node<SelectionStatementData>> for SelectionStatementData
impl From<Node<SelectionStatementData>> for SelectionStatementData
source§fn from(node: Node<SelectionStatementData>) -> SelectionStatementData
fn from(node: Node<SelectionStatementData>) -> SelectionStatementData
Converts to this type from the input type.
source§impl From<Node<SingleDeclarationData>> for SingleDeclarationData
impl From<Node<SingleDeclarationData>> for SingleDeclarationData
source§fn from(node: Node<SingleDeclarationData>) -> SingleDeclarationData
fn from(node: Node<SingleDeclarationData>) -> SingleDeclarationData
Converts to this type from the input type.
source§impl From<Node<SingleDeclarationNoTypeData>> for SingleDeclarationNoTypeData
impl From<Node<SingleDeclarationNoTypeData>> for SingleDeclarationNoTypeData
source§fn from(node: Node<SingleDeclarationNoTypeData>) -> SingleDeclarationNoTypeData
fn from(node: Node<SingleDeclarationNoTypeData>) -> SingleDeclarationNoTypeData
Converts to this type from the input type.
source§impl From<Node<StatementData>> for StatementData
impl From<Node<StatementData>> for StatementData
source§fn from(node: Node<StatementData>) -> StatementData
fn from(node: Node<StatementData>) -> StatementData
Converts to this type from the input type.
source§impl From<Node<StorageQualifierData>> for StorageQualifierData
impl From<Node<StorageQualifierData>> for StorageQualifierData
source§fn from(node: Node<StorageQualifierData>) -> StorageQualifierData
fn from(node: Node<StorageQualifierData>) -> StorageQualifierData
Converts to this type from the input type.
source§impl From<Node<StructFieldSpecifierData>> for StructFieldSpecifierData
impl From<Node<StructFieldSpecifierData>> for StructFieldSpecifierData
source§fn from(node: Node<StructFieldSpecifierData>) -> StructFieldSpecifierData
fn from(node: Node<StructFieldSpecifierData>) -> StructFieldSpecifierData
Converts to this type from the input type.
source§impl From<Node<StructSpecifierData>> for StructSpecifierData
impl From<Node<StructSpecifierData>> for StructSpecifierData
source§fn from(node: Node<StructSpecifierData>) -> StructSpecifierData
fn from(node: Node<StructSpecifierData>) -> StructSpecifierData
Converts to this type from the input type.
source§impl From<Node<SwitchStatementData>> for SwitchStatementData
impl From<Node<SwitchStatementData>> for SwitchStatementData
source§fn from(node: Node<SwitchStatementData>) -> SwitchStatementData
fn from(node: Node<SwitchStatementData>) -> SwitchStatementData
Converts to this type from the input type.
source§impl From<Node<TypeNameData>> for TypeNameData
impl From<Node<TypeNameData>> for TypeNameData
source§fn from(node: Node<TypeNameData>) -> TypeNameData
fn from(node: Node<TypeNameData>) -> TypeNameData
Converts to this type from the input type.
source§impl From<Node<TypeNameData>> for TypeSpecifierNonArrayData
impl From<Node<TypeNameData>> for TypeSpecifierNonArrayData
source§fn from(tn: Node<TypeNameData>) -> TypeSpecifierNonArrayData
fn from(tn: Node<TypeNameData>) -> TypeSpecifierNonArrayData
Converts to this type from the input type.
source§impl From<Node<TypeQualifierData>> for TypeQualifierData
impl From<Node<TypeQualifierData>> for TypeQualifierData
source§fn from(node: Node<TypeQualifierData>) -> TypeQualifierData
fn from(node: Node<TypeQualifierData>) -> TypeQualifierData
Converts to this type from the input type.
source§impl From<Node<TypeQualifierSpecData>> for TypeQualifierSpecData
impl From<Node<TypeQualifierSpecData>> for TypeQualifierSpecData
source§fn from(node: Node<TypeQualifierSpecData>) -> TypeQualifierSpecData
fn from(node: Node<TypeQualifierSpecData>) -> TypeQualifierSpecData
Converts to this type from the input type.
source§impl From<Node<TypeSpecifierData>> for TypeSpecifierData
impl From<Node<TypeSpecifierData>> for TypeSpecifierData
source§fn from(node: Node<TypeSpecifierData>) -> TypeSpecifierData
fn from(node: Node<TypeSpecifierData>) -> TypeSpecifierData
Converts to this type from the input type.
source§impl From<Node<TypeSpecifierNonArrayData>> for TypeSpecifierData
impl From<Node<TypeSpecifierNonArrayData>> for TypeSpecifierData
source§fn from(ty: Node<TypeSpecifierNonArrayData>) -> TypeSpecifierData
fn from(ty: Node<TypeSpecifierNonArrayData>) -> TypeSpecifierData
Converts to this type from the input type.
source§impl From<Node<TypeSpecifierNonArrayData>> for TypeSpecifierNonArrayData
impl From<Node<TypeSpecifierNonArrayData>> for TypeSpecifierNonArrayData
source§fn from(node: Node<TypeSpecifierNonArrayData>) -> TypeSpecifierNonArrayData
fn from(node: Node<TypeSpecifierNonArrayData>) -> TypeSpecifierNonArrayData
Converts to this type from the input type.
source§impl From<Node<UnaryOpData>> for UnaryOpData
impl From<Node<UnaryOpData>> for UnaryOpData
source§fn from(node: Node<UnaryOpData>) -> UnaryOpData
fn from(node: Node<UnaryOpData>) -> UnaryOpData
Converts to this type from the input type.
source§impl<T> From<T> for Node<T>where
T: NodeContent,
impl<T> From<T> for Node<T>where
T: NodeContent,
source§impl FromIterator<Node<StatementData>> for CompoundStatementData
impl FromIterator<Node<StatementData>> for CompoundStatementData
source§fn from_iter<T>(iter: T) -> CompoundStatementData
fn from_iter<T>(iter: T) -> CompoundStatementData
Creates a value from an iterator. Read more
source§impl<T> NodeDisplay for Node<T>where
T: NodeContentDisplay + NodeContent,
impl<T> NodeDisplay for Node<T>where
T: NodeContentDisplay + NodeContent,
source§impl<T> Ord for Node<T>where
T: NodeContent + Ord,
impl<T> Ord for Node<T>where
T: NodeContent + Ord,
source§impl<T> PartialOrd for Node<T>where
T: NodeContent + PartialOrd,
impl<T> PartialOrd for Node<T>where
T: NodeContent + PartialOrd,
source§impl<T> Serialize for Node<T>where
T: NodeContent + Serialize,
impl<T> Serialize for Node<T>where
T: NodeContent + Serialize,
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
impl<T> Copy for Node<T>where
T: NodeContent + Copy,
impl<T> Eq for Node<T>where
T: NodeContent + Eq,
Auto Trait Implementations§
impl<T> Freeze for Node<T>where
T: Freeze,
impl<T> RefUnwindSafe for Node<T>where
T: RefUnwindSafe,
impl<T> Send for Node<T>where
T: Send,
impl<T> Sync for Node<T>where
T: Sync,
impl<T> Unpin for Node<T>where
T: Unpin,
impl<T> UnwindSafe for Node<T>where
T: UnwindSafe,
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§impl<T> Parsable for Twhere
T: Extractable<TranslationUnit>,
impl<T> Parsable for Twhere
T: Extractable<TranslationUnit>,
source§fn parse_with_options<'i>(
source: &'i str,
opts: &ParseOptions,
) -> Result<(T, ParseContext), Located<ParseErrorKind<<Lexer<'i> as HasLexerError>::Error>>>
fn parse_with_options<'i>( source: &'i str, opts: &ParseOptions, ) -> Result<(T, ParseContext), Located<ParseErrorKind<<Lexer<'i> as HasLexerError>::Error>>>
Parse the input source with the given options
source§fn parse_with_context<'i>(
source: &'i str,
ctx: &ParseContext,
) -> Result<(T, ParseContext), Located<ParseErrorKind<<Lexer<'i> as HasLexerError>::Error>>>
fn parse_with_context<'i>( source: &'i str, ctx: &ParseContext, ) -> Result<(T, ParseContext), Located<ParseErrorKind<<Lexer<'i> as HasLexerError>::Error>>>
Parse the input source with the given context
source§fn parse(
source: &str,
) -> Result<Self, ParseError<<DefaultLexer<'_> as HasLexerError>::Error>>
fn parse( source: &str, ) -> Result<Self, ParseError<<DefaultLexer<'_> as HasLexerError>::Error>>
Parse the input source