pub enum MapAccessSyntax {
Bracket,
Period,
}
Expand description
Represents the syntax/style used in a map access.
Variants§
Bracket
Access using bracket notation. mymap[mykey]
Period
Access using period notation. mymap.mykey
Trait Implementations§
Source§impl Clone for MapAccessSyntax
impl Clone for MapAccessSyntax
Source§fn clone(&self) -> MapAccessSyntax
fn clone(&self) -> MapAccessSyntax
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 MapAccessSyntax
impl Debug for MapAccessSyntax
Source§impl Hash for MapAccessSyntax
impl Hash for MapAccessSyntax
Source§impl Ord for MapAccessSyntax
impl Ord for MapAccessSyntax
Source§fn cmp(&self, other: &MapAccessSyntax) -> Ordering
fn cmp(&self, other: &MapAccessSyntax) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for MapAccessSyntax
impl PartialEq for MapAccessSyntax
Source§impl PartialOrd for MapAccessSyntax
impl PartialOrd for MapAccessSyntax
impl Eq for MapAccessSyntax
impl StructuralPartialEq for MapAccessSyntax
Auto Trait Implementations§
impl Freeze for MapAccessSyntax
impl RefUnwindSafe for MapAccessSyntax
impl Send for MapAccessSyntax
impl Sync for MapAccessSyntax
impl Unpin for MapAccessSyntax
impl UnwindSafe for MapAccessSyntax
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