pub enum Mutability {
Mutable,
Immutable,
Constant,
}
Expand description
Mutability
JSON schema
{
"enum": [
"mutable",
"immutable",
"constant"
]
}
Variants§
Trait Implementations§
Source§impl Clone for Mutability
impl Clone for Mutability
Source§fn clone(&self) -> Mutability
fn clone(&self) -> Mutability
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 Mutability
impl Debug for Mutability
Source§impl<'de> Deserialize<'de> for Mutability
impl<'de> Deserialize<'de> for Mutability
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<&Mutability> for Mutability
impl From<&Mutability> for Mutability
Source§fn from(value: &Mutability) -> Self
fn from(value: &Mutability) -> Self
Converts to this type from the input type.
Source§impl FromStr for Mutability
impl FromStr for Mutability
Source§impl Hash for Mutability
impl Hash for Mutability
Source§impl Ord for Mutability
impl Ord for Mutability
Source§fn cmp(&self, other: &Mutability) -> Ordering
fn cmp(&self, other: &Mutability) -> 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 Mutability
impl PartialEq for Mutability
Source§impl PartialOrd for Mutability
impl PartialOrd for Mutability
Source§impl Serialize for Mutability
impl Serialize for Mutability
Source§impl ToString for Mutability
impl ToString for Mutability
Source§impl TryFrom<&String> for Mutability
impl TryFrom<&String> for Mutability
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§impl TryFrom<&str> for Mutability
impl TryFrom<&str> for Mutability
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§impl TryFrom<String> for Mutability
impl TryFrom<String> for Mutability
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
impl Copy for Mutability
impl Eq for Mutability
impl StructuralPartialEq for Mutability
Auto Trait Implementations§
impl Freeze for Mutability
impl RefUnwindSafe for Mutability
impl Send for Mutability
impl Sync for Mutability
impl Unpin for Mutability
impl UnwindSafe for Mutability
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