Struct glory_core::node::Node
source · pub struct Node { /* private fields */ }Implementations§
source§impl Node
impl Node
pub fn new(name: impl Into<Cow<'static, str>>, is_void: bool) -> Self
pub fn remove_child(&self, node: &Node)
pub fn add_class(&self, value: impl Into<Cow<'static, str>>)
pub fn remove_class(&self, key: &str)
pub fn set_attribute( &self, key: impl Into<Cow<'static, str>>, value: impl Into<Cow<'static, str>> )
pub fn remove_attribute(&self, key: &str)
pub fn set_property( &self, key: impl Into<Cow<'static, str>>, value: impl Into<Option<Cow<'static, str>>> )
pub fn remove_property(&self, key: &str)
pub fn prepend_with_node(&self, node: &Node)
pub fn append_with_node(&self, node: &Node)
pub fn before_with_node(&self, node: &Node)
pub fn after_with_node(&self, node: &Node)
pub fn html_tag(&self) -> (String, String)
pub fn outer_html(&self) -> String
pub fn inner_html(&self) -> String
Trait Implementations§
source§impl PartialEq for Node
impl PartialEq for Node
impl Eq for Node
impl StructuralEq for Node
impl StructuralPartialEq for Node
Auto Trait Implementations§
impl !RefUnwindSafe for Node
impl !Send for Node
impl !Sync for Node
impl Unpin for Node
impl !UnwindSafe for Node
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
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.