[−][src]Struct dodrio::NodeKey
The key for keyed children.
Keys must be unique among siblings.
If any sibling is keyed, then they all must be keyed.
Implementations
impl NodeKey
[src]
pub const NONE: NodeKey
[src]
The default, lack of a key.
pub fn is_none(&self) -> bool
[src]
Is this key NodeKey::NONE
?
pub fn is_some(&self) -> bool
[src]
Is this key not NodeKey::NONE
?
pub fn new(key: u32) -> Self
[src]
Create a new NodeKey
.
key
must not be u32::MAX
.
Trait Implementations
impl Clone for NodeKey
[src]
impl Copy for NodeKey
[src]
impl Debug for NodeKey
[src]
impl Default for NodeKey
[src]
impl Eq for NodeKey
[src]
impl Hash for NodeKey
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl PartialEq<NodeKey> for NodeKey
[src]
impl StructuralEq for NodeKey
[src]
impl StructuralPartialEq for NodeKey
[src]
Auto Trait Implementations
impl RefUnwindSafe for NodeKey
impl Send for NodeKey
impl Sync for NodeKey
impl Unpin for NodeKey
impl UnwindSafe for NodeKey
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>,