Enum swc_html_visit::AstParentNodeRef
source · pub enum AstParentNodeRef<'ast> {
Show 14 variants
Attribute(&'ast Attribute, AttributeField),
AttributeToken(&'ast AttributeToken, AttributeTokenField),
Child(&'ast Child, ChildField),
Comment(&'ast Comment, CommentField),
Document(&'ast Document, DocumentField),
DocumentFragment(&'ast DocumentFragment, DocumentFragmentField),
DocumentMode(&'ast DocumentMode, DocumentModeField),
DocumentType(&'ast DocumentType, DocumentTypeField),
Element(&'ast Element, ElementField),
Namespace(&'ast Namespace, NamespaceField),
Raw(&'ast Raw, RawField),
Text(&'ast Text, TextField),
Token(&'ast Token, TokenField),
TokenAndSpan(&'ast TokenAndSpan, TokenAndSpanField),
}
Variants§
Attribute(&'ast Attribute, AttributeField)
AttributeToken(&'ast AttributeToken, AttributeTokenField)
Child(&'ast Child, ChildField)
Comment(&'ast Comment, CommentField)
Document(&'ast Document, DocumentField)
DocumentFragment(&'ast DocumentFragment, DocumentFragmentField)
DocumentMode(&'ast DocumentMode, DocumentModeField)
DocumentType(&'ast DocumentType, DocumentTypeField)
Element(&'ast Element, ElementField)
Namespace(&'ast Namespace, NamespaceField)
Raw(&'ast Raw, RawField)
Text(&'ast Text, TextField)
Token(&'ast Token, TokenField)
TokenAndSpan(&'ast TokenAndSpan, TokenAndSpanField)
Implementations§
source§impl<'ast> AstParentNodeRef<'ast>
impl<'ast> AstParentNodeRef<'ast>
pub fn kind(&self) -> AstParentKind
Trait Implementations§
source§impl<'ast> Clone for AstParentNodeRef<'ast>
impl<'ast> Clone for AstParentNodeRef<'ast>
source§fn clone(&self) -> AstParentNodeRef<'ast>
fn clone(&self) -> AstParentNodeRef<'ast>
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<'ast> Debug for AstParentNodeRef<'ast>
impl<'ast> Debug for AstParentNodeRef<'ast>
source§impl<'ast> NodeRef for AstParentNodeRef<'ast>
impl<'ast> NodeRef for AstParentNodeRef<'ast>
type ParentKind = AstParentKind
fn kind(&self) -> AstParentKind
fn set_index(&mut self, index: usize)
impl<'ast> Copy for AstParentNodeRef<'ast>
Auto Trait Implementations§
impl<'ast> Freeze for AstParentNodeRef<'ast>
impl<'ast> RefUnwindSafe for AstParentNodeRef<'ast>
impl<'ast> Send for AstParentNodeRef<'ast>
impl<'ast> Sync for AstParentNodeRef<'ast>
impl<'ast> Unpin for AstParentNodeRef<'ast>
impl<'ast> UnwindSafe for AstParentNodeRef<'ast>
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
)source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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 more