[][src]Struct dodrio::NodeKey

pub struct 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]

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]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.