[][src]Enum beatsaver_rs::MapId

pub enum MapId {
    Key(usize),
    Hash(String),
}

Specifier used to index a map

Variants

Key(usize)

Identifier is a map key (e.g. 1)

Hash(String)

Identifier is a map hash (e.g. fda568fc27c20d21f8dc6f3709b49b5cc96723be)

Trait Implementations

impl Clone for MapId[src]

impl Debug for MapId[src]

impl Into<MapId> for Map[src]

impl<'_> Into<MapId> for &'_ Map[src]

impl PartialEq<MapId> for MapId[src]

impl StructuralPartialEq for MapId[src]

impl<'_> TryFrom<&'_ str> for MapId[src]

type Error = MapIdError

The type returned in the event of a conversion error.

impl TryFrom<String> for MapId[src]

type Error = MapIdError

The type returned in the event of a conversion error.

Auto Trait Implementations

impl RefUnwindSafe for MapId

impl Send for MapId

impl Sync for MapId

impl Unpin for MapId

impl UnwindSafe for MapId

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> Instrument for T[src]

impl<T> Instrument 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.