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
sourceimpl<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
sourceimpl<U, T> AsRef<U> for Node<T> where
T: NodeContent + AsRef<U>,
impl<U, T> AsRef<U> for Node<T> where
T: NodeContent + AsRef<U>,
sourceimpl<T> Clone for Node<T> where
T: Clone + NodeContent,
impl<T> Clone for Node<T> where
T: Clone + NodeContent,
sourceimpl<T> Debug for Node<T> where
T: Debug + NodeContent,
impl<T> Debug for Node<T> where
T: Debug + NodeContent,
sourceimpl<T> Deref for Node<T> where
T: NodeContent,
impl<T> Deref for Node<T> where
T: NodeContent,
sourceimpl<T> DerefMut for Node<T> where
T: NodeContent,
impl<T> DerefMut for Node<T> where
T: NodeContent,
sourceimpl<T> Display for Node<T> where
T: NodeContent + Display,
impl<T> Display for Node<T> where
T: NodeContent + Display,
sourceimpl From<Node<ArraySpecifierData>> for ArraySpecifierData
impl From<Node<ArraySpecifierData>> for ArraySpecifierData
sourcefn from(node: Node<ArraySpecifierData>) -> ArraySpecifierData
fn from(node: Node<ArraySpecifierData>) -> ArraySpecifierData
Converts to this type from the input type.
sourceimpl From<Node<ArraySpecifierDimensionData>> for ArraySpecifierDimensionData
impl From<Node<ArraySpecifierDimensionData>> for ArraySpecifierDimensionData
sourcefn from(node: Node<ArraySpecifierDimensionData>) -> ArraySpecifierDimensionData
fn from(node: Node<ArraySpecifierDimensionData>) -> ArraySpecifierDimensionData
Converts to this type from the input type.
sourceimpl From<Node<ArrayedIdentifierData>> for ArrayedIdentifierData
impl From<Node<ArrayedIdentifierData>> for ArrayedIdentifierData
sourcefn from(node: Node<ArrayedIdentifierData>) -> ArrayedIdentifierData
fn from(node: Node<ArrayedIdentifierData>) -> ArrayedIdentifierData
Converts to this type from the input type.
sourceimpl From<Node<AssignmentOpData>> for AssignmentOpData
impl From<Node<AssignmentOpData>> for AssignmentOpData
sourcefn from(node: Node<AssignmentOpData>) -> AssignmentOpData
fn from(node: Node<AssignmentOpData>) -> AssignmentOpData
Converts to this type from the input type.
sourceimpl From<Node<BinaryOpData>> for BinaryOpData
impl From<Node<BinaryOpData>> for BinaryOpData
sourcefn from(node: Node<BinaryOpData>) -> BinaryOpData
fn from(node: Node<BinaryOpData>) -> BinaryOpData
Converts to this type from the input type.
sourceimpl From<Node<CaseLabelData>> for CaseLabelData
impl From<Node<CaseLabelData>> for CaseLabelData
sourcefn from(node: Node<CaseLabelData>) -> CaseLabelData
fn from(node: Node<CaseLabelData>) -> CaseLabelData
Converts to this type from the input type.
sourceimpl From<Node<CommentData>> for CommentData
impl From<Node<CommentData>> for CommentData
sourcefn from(node: Node<CommentData>) -> CommentData
fn from(node: Node<CommentData>) -> CommentData
Converts to this type from the input type.
sourceimpl From<Node<CompoundStatementData>> for CompoundStatementData
impl From<Node<CompoundStatementData>> for CompoundStatementData
sourcefn from(node: Node<CompoundStatementData>) -> CompoundStatementData
fn from(node: Node<CompoundStatementData>) -> CompoundStatementData
Converts to this type from the input type.
sourceimpl From<Node<ConditionData>> for ConditionData
impl From<Node<ConditionData>> for ConditionData
sourcefn from(node: Node<ConditionData>) -> ConditionData
fn from(node: Node<ConditionData>) -> ConditionData
Converts to this type from the input type.
sourceimpl From<Node<DeclarationData>> for DeclarationData
impl From<Node<DeclarationData>> for DeclarationData
sourcefn from(node: Node<DeclarationData>) -> DeclarationData
fn from(node: Node<DeclarationData>) -> DeclarationData
Converts to this type from the input type.
sourceimpl From<Node<ExprData>> for InitializerData
impl From<Node<ExprData>> for InitializerData
sourcefn from(e: Node<ExprData>) -> InitializerData
fn from(e: Node<ExprData>) -> InitializerData
Converts to this type from the input type.
sourceimpl From<Node<ExprStatementData>> for ExprStatementData
impl From<Node<ExprStatementData>> for ExprStatementData
sourcefn from(node: Node<ExprStatementData>) -> ExprStatementData
fn from(node: Node<ExprStatementData>) -> ExprStatementData
Converts to this type from the input type.
sourceimpl From<Node<ExternalDeclarationData>> for ExternalDeclarationData
impl From<Node<ExternalDeclarationData>> for ExternalDeclarationData
sourcefn from(node: Node<ExternalDeclarationData>) -> ExternalDeclarationData
fn from(node: Node<ExternalDeclarationData>) -> ExternalDeclarationData
Converts to this type from the input type.
sourceimpl From<Node<ForInitStatementData>> for ForInitStatementData
impl From<Node<ForInitStatementData>> for ForInitStatementData
sourcefn from(node: Node<ForInitStatementData>) -> ForInitStatementData
fn from(node: Node<ForInitStatementData>) -> ForInitStatementData
Converts to this type from the input type.
sourceimpl From<Node<ForRestStatementData>> for ForRestStatementData
impl From<Node<ForRestStatementData>> for ForRestStatementData
sourcefn from(node: Node<ForRestStatementData>) -> ForRestStatementData
fn from(node: Node<ForRestStatementData>) -> ForRestStatementData
Converts to this type from the input type.
sourceimpl From<Node<FullySpecifiedTypeData>> for FullySpecifiedTypeData
impl From<Node<FullySpecifiedTypeData>> for FullySpecifiedTypeData
sourcefn from(node: Node<FullySpecifiedTypeData>) -> FullySpecifiedTypeData
fn from(node: Node<FullySpecifiedTypeData>) -> FullySpecifiedTypeData
Converts to this type from the input type.
sourceimpl From<Node<FunIdentifierData>> for FunIdentifierData
impl From<Node<FunIdentifierData>> for FunIdentifierData
sourcefn from(node: Node<FunIdentifierData>) -> FunIdentifierData
fn from(node: Node<FunIdentifierData>) -> FunIdentifierData
Converts to this type from the input type.
sourceimpl From<Node<FunctionDefinitionData>> for FunctionDefinitionData
impl From<Node<FunctionDefinitionData>> for FunctionDefinitionData
sourcefn from(node: Node<FunctionDefinitionData>) -> FunctionDefinitionData
fn from(node: Node<FunctionDefinitionData>) -> FunctionDefinitionData
Converts to this type from the input type.
sourceimpl From<Node<FunctionParameterDeclarationData>> for FunctionParameterDeclarationData
impl From<Node<FunctionParameterDeclarationData>> for FunctionParameterDeclarationData
sourcefn from(
node: Node<FunctionParameterDeclarationData>
) -> FunctionParameterDeclarationData
fn from(
node: Node<FunctionParameterDeclarationData>
) -> FunctionParameterDeclarationData
Converts to this type from the input type.
sourceimpl From<Node<FunctionParameterDeclaratorData>> for FunctionParameterDeclaratorData
impl From<Node<FunctionParameterDeclaratorData>> for FunctionParameterDeclaratorData
sourcefn from(
node: Node<FunctionParameterDeclaratorData>
) -> FunctionParameterDeclaratorData
fn from(
node: Node<FunctionParameterDeclaratorData>
) -> FunctionParameterDeclaratorData
Converts to this type from the input type.
sourceimpl From<Node<FunctionPrototypeData>> for FunctionPrototypeData
impl From<Node<FunctionPrototypeData>> for FunctionPrototypeData
sourcefn from(node: Node<FunctionPrototypeData>) -> FunctionPrototypeData
fn from(node: Node<FunctionPrototypeData>) -> FunctionPrototypeData
Converts to this type from the input type.
sourceimpl From<Node<IdentifierData>> for IdentifierData
impl From<Node<IdentifierData>> for IdentifierData
sourcefn from(node: Node<IdentifierData>) -> IdentifierData
fn from(node: Node<IdentifierData>) -> IdentifierData
Converts to this type from the input type.
sourceimpl From<Node<InitDeclaratorListData>> for InitDeclaratorListData
impl From<Node<InitDeclaratorListData>> for InitDeclaratorListData
sourcefn from(node: Node<InitDeclaratorListData>) -> InitDeclaratorListData
fn from(node: Node<InitDeclaratorListData>) -> InitDeclaratorListData
Converts to this type from the input type.
sourceimpl From<Node<InitializerData>> for InitializerData
impl From<Node<InitializerData>> for InitializerData
sourcefn from(node: Node<InitializerData>) -> InitializerData
fn from(node: Node<InitializerData>) -> InitializerData
Converts to this type from the input type.
sourceimpl From<Node<InterpolationQualifierData>> for InterpolationQualifierData
impl From<Node<InterpolationQualifierData>> for InterpolationQualifierData
sourcefn from(node: Node<InterpolationQualifierData>) -> InterpolationQualifierData
fn from(node: Node<InterpolationQualifierData>) -> InterpolationQualifierData
Converts to this type from the input type.
sourceimpl From<Node<IterationStatementData>> for IterationStatementData
impl From<Node<IterationStatementData>> for IterationStatementData
sourcefn from(node: Node<IterationStatementData>) -> IterationStatementData
fn from(node: Node<IterationStatementData>) -> IterationStatementData
Converts to this type from the input type.
sourceimpl From<Node<JumpStatementData>> for JumpStatementData
impl From<Node<JumpStatementData>> for JumpStatementData
sourcefn from(node: Node<JumpStatementData>) -> JumpStatementData
fn from(node: Node<JumpStatementData>) -> JumpStatementData
Converts to this type from the input type.
sourceimpl From<Node<LayoutQualifierData>> for LayoutQualifierData
impl From<Node<LayoutQualifierData>> for LayoutQualifierData
sourcefn from(node: Node<LayoutQualifierData>) -> LayoutQualifierData
fn from(node: Node<LayoutQualifierData>) -> LayoutQualifierData
Converts to this type from the input type.
sourceimpl From<Node<LayoutQualifierSpecData>> for LayoutQualifierSpecData
impl From<Node<LayoutQualifierSpecData>> for LayoutQualifierSpecData
sourcefn from(node: Node<LayoutQualifierSpecData>) -> LayoutQualifierSpecData
fn from(node: Node<LayoutQualifierSpecData>) -> LayoutQualifierSpecData
Converts to this type from the input type.
sourceimpl From<Node<PrecisionQualifierData>> for PrecisionQualifierData
impl From<Node<PrecisionQualifierData>> for PrecisionQualifierData
sourcefn from(node: Node<PrecisionQualifierData>) -> PrecisionQualifierData
fn from(node: Node<PrecisionQualifierData>) -> PrecisionQualifierData
Converts to this type from the input type.
sourceimpl From<Node<PreprocessorData>> for PreprocessorData
impl From<Node<PreprocessorData>> for PreprocessorData
sourcefn from(node: Node<PreprocessorData>) -> PreprocessorData
fn from(node: Node<PreprocessorData>) -> PreprocessorData
Converts to this type from the input type.
sourceimpl From<Node<PreprocessorDefineData>> for PreprocessorDefineData
impl From<Node<PreprocessorDefineData>> for PreprocessorDefineData
sourcefn from(node: Node<PreprocessorDefineData>) -> PreprocessorDefineData
fn from(node: Node<PreprocessorDefineData>) -> PreprocessorDefineData
Converts to this type from the input type.
sourceimpl From<Node<PreprocessorElseIfData>> for PreprocessorElseIfData
impl From<Node<PreprocessorElseIfData>> for PreprocessorElseIfData
sourcefn from(node: Node<PreprocessorElseIfData>) -> PreprocessorElseIfData
fn from(node: Node<PreprocessorElseIfData>) -> PreprocessorElseIfData
Converts to this type from the input type.
sourceimpl From<Node<PreprocessorErrorData>> for PreprocessorErrorData
impl From<Node<PreprocessorErrorData>> for PreprocessorErrorData
sourcefn from(node: Node<PreprocessorErrorData>) -> PreprocessorErrorData
fn from(node: Node<PreprocessorErrorData>) -> PreprocessorErrorData
Converts to this type from the input type.
sourceimpl From<Node<PreprocessorExtensionBehaviorData>> for PreprocessorExtensionBehaviorData
impl From<Node<PreprocessorExtensionBehaviorData>> for PreprocessorExtensionBehaviorData
sourcefn from(
node: Node<PreprocessorExtensionBehaviorData>
) -> PreprocessorExtensionBehaviorData
fn from(
node: Node<PreprocessorExtensionBehaviorData>
) -> PreprocessorExtensionBehaviorData
Converts to this type from the input type.
sourceimpl From<Node<PreprocessorExtensionData>> for PreprocessorExtensionData
impl From<Node<PreprocessorExtensionData>> for PreprocessorExtensionData
sourcefn from(node: Node<PreprocessorExtensionData>) -> PreprocessorExtensionData
fn from(node: Node<PreprocessorExtensionData>) -> PreprocessorExtensionData
Converts to this type from the input type.
sourceimpl From<Node<PreprocessorExtensionNameData>> for PreprocessorExtensionNameData
impl From<Node<PreprocessorExtensionNameData>> for PreprocessorExtensionNameData
sourcefn from(
node: Node<PreprocessorExtensionNameData>
) -> PreprocessorExtensionNameData
fn from(
node: Node<PreprocessorExtensionNameData>
) -> PreprocessorExtensionNameData
Converts to this type from the input type.
sourceimpl From<Node<PreprocessorIfData>> for PreprocessorIfData
impl From<Node<PreprocessorIfData>> for PreprocessorIfData
sourcefn from(node: Node<PreprocessorIfData>) -> PreprocessorIfData
fn from(node: Node<PreprocessorIfData>) -> PreprocessorIfData
Converts to this type from the input type.
sourceimpl From<Node<PreprocessorIfDefData>> for PreprocessorIfDefData
impl From<Node<PreprocessorIfDefData>> for PreprocessorIfDefData
sourcefn from(node: Node<PreprocessorIfDefData>) -> PreprocessorIfDefData
fn from(node: Node<PreprocessorIfDefData>) -> PreprocessorIfDefData
Converts to this type from the input type.
sourceimpl From<Node<PreprocessorIfNDefData>> for PreprocessorIfNDefData
impl From<Node<PreprocessorIfNDefData>> for PreprocessorIfNDefData
sourcefn from(node: Node<PreprocessorIfNDefData>) -> PreprocessorIfNDefData
fn from(node: Node<PreprocessorIfNDefData>) -> PreprocessorIfNDefData
Converts to this type from the input type.
sourceimpl From<Node<PreprocessorIncludeData>> for PreprocessorIncludeData
impl From<Node<PreprocessorIncludeData>> for PreprocessorIncludeData
sourcefn from(node: Node<PreprocessorIncludeData>) -> PreprocessorIncludeData
fn from(node: Node<PreprocessorIncludeData>) -> PreprocessorIncludeData
Converts to this type from the input type.
sourceimpl From<Node<PreprocessorLineData>> for PreprocessorLineData
impl From<Node<PreprocessorLineData>> for PreprocessorLineData
sourcefn from(node: Node<PreprocessorLineData>) -> PreprocessorLineData
fn from(node: Node<PreprocessorLineData>) -> PreprocessorLineData
Converts to this type from the input type.
sourceimpl From<Node<PreprocessorPragmaData>> for PreprocessorPragmaData
impl From<Node<PreprocessorPragmaData>> for PreprocessorPragmaData
sourcefn from(node: Node<PreprocessorPragmaData>) -> PreprocessorPragmaData
fn from(node: Node<PreprocessorPragmaData>) -> PreprocessorPragmaData
Converts to this type from the input type.
sourceimpl From<Node<PreprocessorUndefData>> for PreprocessorUndefData
impl From<Node<PreprocessorUndefData>> for PreprocessorUndefData
sourcefn from(node: Node<PreprocessorUndefData>) -> PreprocessorUndefData
fn from(node: Node<PreprocessorUndefData>) -> PreprocessorUndefData
Converts to this type from the input type.
sourceimpl From<Node<PreprocessorVersionData>> for PreprocessorVersionData
impl From<Node<PreprocessorVersionData>> for PreprocessorVersionData
sourcefn from(node: Node<PreprocessorVersionData>) -> PreprocessorVersionData
fn from(node: Node<PreprocessorVersionData>) -> PreprocessorVersionData
Converts to this type from the input type.
sourceimpl From<Node<PreprocessorVersionProfileData>> for PreprocessorVersionProfileData
impl From<Node<PreprocessorVersionProfileData>> for PreprocessorVersionProfileData
sourcefn from(
node: Node<PreprocessorVersionProfileData>
) -> PreprocessorVersionProfileData
fn from(
node: Node<PreprocessorVersionProfileData>
) -> PreprocessorVersionProfileData
Converts to this type from the input type.
sourceimpl From<Node<SelectionRestStatementData>> for SelectionRestStatementData
impl From<Node<SelectionRestStatementData>> for SelectionRestStatementData
sourcefn from(node: Node<SelectionRestStatementData>) -> SelectionRestStatementData
fn from(node: Node<SelectionRestStatementData>) -> SelectionRestStatementData
Converts to this type from the input type.
sourceimpl From<Node<SelectionStatementData>> for SelectionStatementData
impl From<Node<SelectionStatementData>> for SelectionStatementData
sourcefn from(node: Node<SelectionStatementData>) -> SelectionStatementData
fn from(node: Node<SelectionStatementData>) -> SelectionStatementData
Converts to this type from the input type.
sourceimpl From<Node<SingleDeclarationData>> for SingleDeclarationData
impl From<Node<SingleDeclarationData>> for SingleDeclarationData
sourcefn from(node: Node<SingleDeclarationData>) -> SingleDeclarationData
fn from(node: Node<SingleDeclarationData>) -> SingleDeclarationData
Converts to this type from the input type.
sourceimpl From<Node<SingleDeclarationNoTypeData>> for SingleDeclarationNoTypeData
impl From<Node<SingleDeclarationNoTypeData>> for SingleDeclarationNoTypeData
sourcefn from(node: Node<SingleDeclarationNoTypeData>) -> SingleDeclarationNoTypeData
fn from(node: Node<SingleDeclarationNoTypeData>) -> SingleDeclarationNoTypeData
Converts to this type from the input type.
sourceimpl From<Node<StatementData>> for StatementData
impl From<Node<StatementData>> for StatementData
sourcefn from(node: Node<StatementData>) -> StatementData
fn from(node: Node<StatementData>) -> StatementData
Converts to this type from the input type.
sourceimpl From<Node<StorageQualifierData>> for StorageQualifierData
impl From<Node<StorageQualifierData>> for StorageQualifierData
sourcefn from(node: Node<StorageQualifierData>) -> StorageQualifierData
fn from(node: Node<StorageQualifierData>) -> StorageQualifierData
Converts to this type from the input type.
sourceimpl From<Node<StructFieldSpecifierData>> for StructFieldSpecifierData
impl From<Node<StructFieldSpecifierData>> for StructFieldSpecifierData
sourcefn from(node: Node<StructFieldSpecifierData>) -> StructFieldSpecifierData
fn from(node: Node<StructFieldSpecifierData>) -> StructFieldSpecifierData
Converts to this type from the input type.
sourceimpl From<Node<StructSpecifierData>> for StructSpecifierData
impl From<Node<StructSpecifierData>> for StructSpecifierData
sourcefn from(node: Node<StructSpecifierData>) -> StructSpecifierData
fn from(node: Node<StructSpecifierData>) -> StructSpecifierData
Converts to this type from the input type.
sourceimpl From<Node<SwitchStatementData>> for SwitchStatementData
impl From<Node<SwitchStatementData>> for SwitchStatementData
sourcefn from(node: Node<SwitchStatementData>) -> SwitchStatementData
fn from(node: Node<SwitchStatementData>) -> SwitchStatementData
Converts to this type from the input type.
sourceimpl From<Node<TranslationUnit>> for TranslationUnit
impl From<Node<TranslationUnit>> for TranslationUnit
sourcefn from(node: Node<TranslationUnit>) -> TranslationUnit
fn from(node: Node<TranslationUnit>) -> TranslationUnit
Converts to this type from the input type.
sourceimpl From<Node<TypeNameData>> for TypeSpecifierNonArrayData
impl From<Node<TypeNameData>> for TypeSpecifierNonArrayData
sourcefn from(tn: Node<TypeNameData>) -> TypeSpecifierNonArrayData
fn from(tn: Node<TypeNameData>) -> TypeSpecifierNonArrayData
Converts to this type from the input type.
sourceimpl From<Node<TypeNameData>> for TypeNameData
impl From<Node<TypeNameData>> for TypeNameData
sourcefn from(node: Node<TypeNameData>) -> TypeNameData
fn from(node: Node<TypeNameData>) -> TypeNameData
Converts to this type from the input type.
sourceimpl From<Node<TypeQualifierData>> for TypeQualifierData
impl From<Node<TypeQualifierData>> for TypeQualifierData
sourcefn from(node: Node<TypeQualifierData>) -> TypeQualifierData
fn from(node: Node<TypeQualifierData>) -> TypeQualifierData
Converts to this type from the input type.
sourceimpl From<Node<TypeQualifierSpecData>> for TypeQualifierSpecData
impl From<Node<TypeQualifierSpecData>> for TypeQualifierSpecData
sourcefn from(node: Node<TypeQualifierSpecData>) -> TypeQualifierSpecData
fn from(node: Node<TypeQualifierSpecData>) -> TypeQualifierSpecData
Converts to this type from the input type.
sourceimpl From<Node<TypeSpecifierData>> for TypeSpecifierData
impl From<Node<TypeSpecifierData>> for TypeSpecifierData
sourcefn from(node: Node<TypeSpecifierData>) -> TypeSpecifierData
fn from(node: Node<TypeSpecifierData>) -> TypeSpecifierData
Converts to this type from the input type.
sourceimpl From<Node<TypeSpecifierNonArrayData>> for TypeSpecifierNonArrayData
impl From<Node<TypeSpecifierNonArrayData>> for TypeSpecifierNonArrayData
sourcefn from(node: Node<TypeSpecifierNonArrayData>) -> TypeSpecifierNonArrayData
fn from(node: Node<TypeSpecifierNonArrayData>) -> TypeSpecifierNonArrayData
Converts to this type from the input type.
sourceimpl From<Node<TypeSpecifierNonArrayData>> for TypeSpecifierData
impl From<Node<TypeSpecifierNonArrayData>> for TypeSpecifierData
sourcefn from(ty: Node<TypeSpecifierNonArrayData>) -> TypeSpecifierData
fn from(ty: Node<TypeSpecifierNonArrayData>) -> TypeSpecifierData
Converts to this type from the input type.
sourceimpl From<Node<UnaryOpData>> for UnaryOpData
impl From<Node<UnaryOpData>> for UnaryOpData
sourcefn from(node: Node<UnaryOpData>) -> UnaryOpData
fn from(node: Node<UnaryOpData>) -> UnaryOpData
Converts to this type from the input type.
sourceimpl<T> From<T> for Node<T> where
T: NodeContent,
impl<T> From<T> for Node<T> where
T: NodeContent,
sourceimpl FromIterator<Node<StatementData>> for CompoundStatementData
impl FromIterator<Node<StatementData>> for CompoundStatementData
sourcefn from_iter<T>(iter: T) -> CompoundStatementData where
T: IntoIterator<Item = Node<StatementData>>,
fn from_iter<T>(iter: T) -> CompoundStatementData where
T: IntoIterator<Item = Node<StatementData>>,
Creates a value from an iterator. Read more
sourceimpl<T> Hash for Node<T> where
T: NodeContent + Hash,
impl<T> Hash for Node<T> where
T: NodeContent + Hash,
sourceimpl<T> NodeDisplay for Node<T> where
T: NodeContentDisplay + NodeContent,
impl<T> NodeDisplay for Node<T> where
T: NodeContentDisplay + NodeContent,
sourceimpl<T> Ord for Node<T> where
T: NodeContent + Ord,
impl<T> Ord for Node<T> where
T: NodeContent + Ord,
sourceimpl<T> PartialOrd<Node<T>> for Node<T> where
T: NodeContent + PartialOrd<T>,
impl<T> PartialOrd<Node<T>> for Node<T> where
T: NodeContent + PartialOrd<T>,
sourcefn partial_cmp(&self, other: &Node<T>) -> Option<Ordering>
fn partial_cmp(&self, other: &Node<T>) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. 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> 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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more