Struct rin::blender::scene_data::idtree::Arena [−][src]
pub struct Arena<T> { /* fields omitted */ }
Implementations
impl<T> Arena<T>
[src]
impl<T> Arena<T>
[src]pub fn new() -> Arena<T>
[src]
pub fn new_node(&mut self, data: T) -> NodeIdMut<'_, T>
[src]
Create a new node from its associated data.
pub fn get(&self, id: NodeId) -> NodeIdRef<'_, T>
[src]
pub fn get_mut(&mut self, id: NodeId) -> NodeIdMut<'_, T>
[src]
pub fn contains(&self, id: NodeId) -> bool
[src]
pub fn remove<N>(&mut self, id: N) -> Result<T, ()> where
N: Into<NodeId>,
[src]
N: Into<NodeId>,
pub fn remove_tree<N>(&mut self, id: N) -> Result<(), ()> where
N: Into<NodeId>,
[src]
N: Into<NodeId>,
pub fn all_nodes(&'a self) -> Box<dyn Iterator<Item = &'a Node<T>> + 'a, Global>
[src]
pub fn all_nodes_mut(
&'a mut self
) -> Box<dyn Iterator<Item = &'a mut Node<T>> + 'a, Global>
[src]
&'a mut self
) -> Box<dyn Iterator<Item = &'a mut Node<T>> + 'a, Global>
pub fn into_vec(self) -> Vec<Node<T>, Global>ⓘ
[src]
Trait Implementations
impl<'de, T> Deserialize<'de> for Arena<T> where
T: Deserialize<'de>,
[src]
impl<'de, T> Deserialize<'de> for Arena<T> where
T: Deserialize<'de>,
[src]pub fn deserialize<__D>(
__deserializer: __D
) -> Result<Arena<T>, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
[src]
__deserializer: __D
) -> Result<Arena<T>, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
impl<T> Serialize for Arena<T> where
T: Serialize,
[src]
impl<T> Serialize for Arena<T> where
T: Serialize,
[src]pub fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
[src]
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
Auto Trait Implementations
impl<T> RefUnwindSafe for Arena<T> where
T: RefUnwindSafe,
T: RefUnwindSafe,
impl<T> Send for Arena<T> where
T: Send,
T: Send,
impl<T> Sync for Arena<T> where
T: Sync,
T: Sync,
impl<T> Unpin for Arena<T> where
T: Unpin,
T: Unpin,
impl<T> UnwindSafe for Arena<T> where
T: UnwindSafe,
T: UnwindSafe,
Blanket Implementations
impl<T> DowncastSync for T where
T: Any + Send + Sync,
[src]
impl<T> DowncastSync for T where
T: Any + Send + Sync,
[src]impl<T> Serialize for T where
T: Serialize + ?Sized,
[src]
impl<T> Serialize for T where
T: Serialize + ?Sized,
[src]pub fn erased_serialize(
&self,
serializer: &mut dyn Serializer
) -> Result<Ok, Error>
[src]
&self,
serializer: &mut dyn Serializer
) -> Result<Ok, Error>
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
[src]
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
[src]pub fn to_subset(&self) -> Option<SS>
[src]
pub fn is_in_subset(&self) -> bool
[src]
pub fn to_subset_unchecked(&self) -> SS
[src]
pub fn from_subset(element: &SS) -> SP
[src]
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
[src]
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
[src]pub fn to_subset(&self) -> Option<SS>
[src]
pub fn is_in_subset(&self) -> bool
[src]
pub fn to_subset_unchecked(&self) -> SS
[src]
pub fn from_subset(element: &SS) -> SP
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,