Enum taplo::dom::KeyOrIndex
source · pub enum KeyOrIndex {
Key(Key),
Index(usize),
}
Variants§
Implementations§
Trait Implementations§
source§impl Clone for KeyOrIndex
impl Clone for KeyOrIndex
source§fn clone(&self) -> KeyOrIndex
fn clone(&self) -> KeyOrIndex
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for KeyOrIndex
impl Debug for KeyOrIndex
source§impl Display for KeyOrIndex
impl Display for KeyOrIndex
source§impl From<Key> for KeyOrIndex
impl From<Key> for KeyOrIndex
source§impl<N> From<N> for KeyOrIndex
impl<N> From<N> for KeyOrIndex
source§impl PartialEq<str> for KeyOrIndex
impl PartialEq<str> for KeyOrIndex
source§impl PartialEq for KeyOrIndex
impl PartialEq for KeyOrIndex
source§fn eq(&self, other: &KeyOrIndex) -> bool
fn eq(&self, other: &KeyOrIndex) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for KeyOrIndex
impl Index for KeyOrIndex
impl StructuralPartialEq for KeyOrIndex
Auto Trait Implementations§
impl !RefUnwindSafe for KeyOrIndex
impl !Send for KeyOrIndex
impl !Sync for KeyOrIndex
impl Unpin for KeyOrIndex
impl !UnwindSafe for KeyOrIndex
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more