Struct rdom::node_list::NodeList [−][src]
pub struct NodeList { pub context: SandboxMemberBehaviorStorage, // some fields omitted }
Represents a NodeList structure, which may be either “live” or “static”. Note that these are not strongly retained by the Sandbox, and there is no guarantee they will work after the Sandbox has been dropped. So, to use a NodeList, make sure you have retained both the Sandbox and an Rc to the NodeList before performing any operations.
Also note that retaining a NodeList may cause other Nodes to be retained. For example,
some_node.child_nodes()
and retaining the return value will cause some_node
to be
retained.
Fields
context: SandboxMemberBehaviorStorage
Reference to the sandbox to which this NodeList belongs
Implementations
impl NodeList
[src]
pub fn length(&self) -> usize
[src]
NodeList#length
pub fn item(&self, index: usize) -> Option<AnyNodeArc>
[src]
NodeList#item
pub fn get(&self, index: usize) -> Option<AnyNodeArc>
[src]
NodeList#get
Auto Trait Implementations
impl RefUnwindSafe for NodeList
impl Send for NodeList
impl Sync for NodeList
impl Unpin for NodeList
impl UnwindSafe for NodeList
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,
pub 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, 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.
pub 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>,