pub struct KeyValuePair { /* private fields */ }Implementations§
Source§impl KeyValuePair
impl KeyValuePair
Sourcepub fn into_tuple(self) -> (String, Object)
pub fn into_tuple(self) -> (String, Object)
Consumes the KeyValuePair and returns a (key, value) tuple.
Sourcepub fn into_value(self) -> Object
pub fn into_value(self) -> Object
Consumes the KeyValuePair and returns the value.
Sourcepub fn key_mut(&mut self) -> &mut String
pub fn key_mut(&mut self) -> &mut String
Returns an exclusive reference to the key of the KeyValuePair.
Sourcepub fn tuple(&self) -> (&String, &Object)
pub fn tuple(&self) -> (&String, &Object)
Returns references to both the key and value as a tuple.
Trait Implementations§
Source§impl Clone for KeyValuePair
impl Clone for KeyValuePair
Source§fn clone(&self) -> KeyValuePair
fn clone(&self) -> KeyValuePair
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl PartialEq for KeyValuePair
impl PartialEq for KeyValuePair
Source§fn eq(&self, other: &KeyValuePair) -> bool
fn eq(&self, other: &KeyValuePair) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for KeyValuePair
Auto Trait Implementations§
impl !Send for KeyValuePair
impl !Sync for KeyValuePair
impl Freeze for KeyValuePair
impl RefUnwindSafe for KeyValuePair
impl Unpin for KeyValuePair
impl UnsafeUnpin for KeyValuePair
impl UnwindSafe for KeyValuePair
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> IntoResult<T> for T
impl<T> IntoResult<T> for T
Source§type Error = Infallible
type Error = Infallible
The error type in the returned
Result.Source§fn into_result(self) -> Result<T, <T as IntoResult<T>>::Error>
fn into_result(self) -> Result<T, <T as IntoResult<T>>::Error>
Converts the value into a
Result.