Enum cm_rust::ConfigValue
source · pub enum ConfigValue {
Single(ConfigSingleValue),
Vector(ConfigVectorValue),
}
Variants§
Single(ConfigSingleValue)
Vector(ConfigVectorValue)
Implementations§
source§impl ConfigValue
impl ConfigValue
sourcepub fn ty(&self) -> ConfigValueType
pub fn ty(&self) -> ConfigValueType
Return the type of this value.
sourcepub fn matches_type(&self, other: &ConfigValue) -> bool
pub fn matches_type(&self, other: &ConfigValue) -> bool
Check if this value matches the type of another value.
Trait Implementations§
source§impl Clone for ConfigValue
impl Clone for ConfigValue
source§fn clone(&self) -> ConfigValue
fn clone(&self) -> ConfigValue
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 ConfigValue
impl Debug for ConfigValue
source§impl Display for ConfigValue
impl Display for ConfigValue
source§impl FidlIntoNative<ConfigValue> for ConfigValue
impl FidlIntoNative<ConfigValue> for ConfigValue
fn fidl_into_native(self) -> ConfigValue
source§impl NativeIntoFidl<ConfigValue> for ConfigValue
impl NativeIntoFidl<ConfigValue> for ConfigValue
fn native_into_fidl(self) -> ConfigValue
source§impl PartialEq for ConfigValue
impl PartialEq for ConfigValue
source§fn eq(&self, other: &ConfigValue) -> bool
fn eq(&self, other: &ConfigValue) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for ConfigValue
impl StructuralEq for ConfigValue
impl StructuralPartialEq for ConfigValue
Auto Trait Implementations§
impl RefUnwindSafe for ConfigValue
impl Send for ConfigValue
impl Sync for ConfigValue
impl Unpin for ConfigValue
impl UnwindSafe for ConfigValue
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