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 From<&str> for ConfigValue
impl From<&str> for ConfigValue
Source§impl From<ConfigSingleValue> for ConfigValue
impl From<ConfigSingleValue> for ConfigValue
Source§fn from(f: ConfigSingleValue) -> Self
fn from(f: ConfigSingleValue) -> Self
Converts to this type from the input type.
Source§impl From<ConfigVectorValue> for ConfigValue
impl From<ConfigVectorValue> for ConfigValue
Source§fn from(f: ConfigVectorValue) -> Self
fn from(f: ConfigVectorValue) -> Self
Converts to this type from the input type.
Source§impl From<String> for ConfigValue
impl From<String> for ConfigValue
Source§impl From<bool> for ConfigValue
impl From<bool> for ConfigValue
Source§impl From<i16> for ConfigValue
impl From<i16> for ConfigValue
Source§impl From<i32> for ConfigValue
impl From<i32> for ConfigValue
Source§impl From<i64> for ConfigValue
impl From<i64> for ConfigValue
Source§impl From<i8> for ConfigValue
impl From<i8> for ConfigValue
Source§impl From<u16> for ConfigValue
impl From<u16> for ConfigValue
Source§impl From<u32> for ConfigValue
impl From<u32> for ConfigValue
Source§impl From<u64> for ConfigValue
impl From<u64> for ConfigValue
Source§impl From<u8> for ConfigValue
impl From<u8> for ConfigValue
Source§impl FromEnum<ConfigValue> for ConfigSingleValue
impl FromEnum<ConfigValue> for ConfigSingleValue
fn from_enum(e: &ConfigValue) -> Option<&Self>
Source§impl FromEnum<ConfigValue> for ConfigVectorValue
impl FromEnum<ConfigValue> for ConfigVectorValue
fn from_enum(e: &ConfigValue) -> Option<&Self>
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
impl Eq for ConfigValue
impl StructuralPartialEq for ConfigValue
Auto Trait Implementations§
impl Freeze for ConfigValue
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)