pub struct TagNode {
pub name: String,
pub attributes: Vec<(String, Option<String>)>,
}
Available on crate feature
artemis
only.Expand description
Represents a tag node in Artemis TXT scripts.
Fields§
§name: String
The name of the tag.
attributes: Vec<(String, Option<String>)>
The attributes of the tag, represented as a vector of key-value pairs.
Implementations§
Source§impl TagNode
impl TagNode
fn ser_attributes_xml(&self) -> String
Sourcepub fn get_attr(&self, attr: &str) -> Option<&str>
pub fn get_attr(&self, attr: &str) -> Option<&str>
Get attribute value of attribute in tag by name.
Sourcepub fn is_blocked_name(&self, set: &HashSet<String>) -> bool
pub fn is_blocked_name(&self, set: &HashSet<String>) -> bool
Returns true if the tag is not suitable for name.
Trait Implementations§
impl StructuralPartialEq for TagNode
Auto Trait Implementations§
impl Freeze for TagNode
impl RefUnwindSafe for TagNode
impl Send for TagNode
impl Sync for TagNode
impl Unpin for TagNode
impl UnwindSafe for TagNode
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§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