[−][src]Struct kuchiki::NodeDataRef
Holds a strong reference to a node, but dereferences to some component inside of it.
Methods
impl<T> NodeDataRef<T>
[src]
pub fn new<F>(rc: NodeRef, f: F) -> NodeDataRef<T> where
F: FnOnce(&Node) -> &T,
[src]
F: FnOnce(&Node) -> &T,
Create a NodeDataRef
for a component in a given node.
pub fn new_opt<F>(rc: NodeRef, f: F) -> Option<NodeDataRef<T>> where
F: FnOnce(&Node) -> Option<&T>,
[src]
F: FnOnce(&Node) -> Option<&T>,
Create a NodeDataRef
for and a component that may or may not be in a given node.
pub fn as_node(&self) -> &NodeRef
[src]
Access the corresponding node.
impl NodeDataRef<ElementData>
[src]
pub fn text_contents(&self) -> String
[src]
Return the concatenation of all text nodes in this subtree.
Trait Implementations
impl<T> Clone for NodeDataRef<T>
[src]
fn clone(&self) -> Self
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<T: Debug> Debug for NodeDataRef<T>
[src]
impl<T> Deref for NodeDataRef<T>
[src]
impl Element for NodeDataRef<ElementData>
[src]
type Impl = KuchikiSelectors
fn opaque(&self) -> OpaqueElement
[src]
fn is_html_slot_element(&self) -> bool
[src]
fn parent_node_is_shadow_root(&self) -> bool
[src]
fn containing_shadow_host(&self) -> Option<Self>
[src]
fn parent_element(&self) -> Option<Self>
[src]
fn prev_sibling_element(&self) -> Option<Self>
[src]
fn next_sibling_element(&self) -> Option<Self>
[src]
fn is_empty(&self) -> bool
[src]
fn is_root(&self) -> bool
[src]
fn is_html_element_in_html_document(&self) -> bool
[src]
fn has_local_name(&self, name: &LocalName) -> bool
[src]
fn has_namespace(&self, namespace: &Namespace) -> bool
[src]
fn is_part(&self, _name: &LocalName) -> bool
[src]
fn exported_part(&self, _: &LocalName) -> Option<LocalName>
[src]
fn imported_part(&self, _: &LocalName) -> Option<LocalName>
[src]
fn is_pseudo_element(&self) -> bool
[src]
fn is_same_type(&self, other: &Self) -> bool
[src]
fn is_link(&self) -> bool
[src]
fn has_id(&self, id: &LocalName, case_sensitivity: CaseSensitivity) -> bool
[src]
fn has_class(&self, name: &LocalName, case_sensitivity: CaseSensitivity) -> bool
[src]
fn attr_matches(
&self,
ns: &NamespaceConstraint<&Namespace>,
local_name: &LocalName,
operation: &AttrSelectorOperation<&String>
) -> bool
[src]
&self,
ns: &NamespaceConstraint<&Namespace>,
local_name: &LocalName,
operation: &AttrSelectorOperation<&String>
) -> bool
fn match_pseudo_element(
&self,
pseudo: &PseudoElement,
_context: &mut MatchingContext<KuchikiSelectors>
) -> bool
[src]
&self,
pseudo: &PseudoElement,
_context: &mut MatchingContext<KuchikiSelectors>
) -> bool
fn match_non_ts_pseudo_class<F>(
&self,
pseudo: &PseudoClass,
_context: &mut MatchingContext<KuchikiSelectors>,
_flags_setter: &mut F
) -> bool where
F: FnMut(&Self, ElementSelectorFlags),
[src]
&self,
pseudo: &PseudoClass,
_context: &mut MatchingContext<KuchikiSelectors>,
_flags_setter: &mut F
) -> bool where
F: FnMut(&Self, ElementSelectorFlags),
fn pseudo_element_originating_element(&self) -> Option<Self>
fn assigned_slot(&self) -> Option<Self>
fn ignores_nth_child_selectors(&self) -> bool
impl<T: Eq> Eq for NodeDataRef<T>
[src]
impl<T> PartialEq<NodeDataRef<T>> for NodeDataRef<T>
[src]
impl<T> StructuralEq for NodeDataRef<T>
[src]
Auto Trait Implementations
impl<T> !RefUnwindSafe for NodeDataRef<T>
impl<T> !Send for NodeDataRef<T>
impl<T> !Sync for NodeDataRef<T>
impl<T> Unpin for NodeDataRef<T>
impl<T> !UnwindSafe for NodeDataRef<T>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,