#[repr(i32)]pub enum CapeRegistryValueType {
String = 0,
Integer = 1,
UUID = 2,
Empty = 3,
}Expand description
Registry value type
The supported types of registry values.
Variants§
Implementations§
Source§impl CapeRegistryValueType
impl CapeRegistryValueType
Sourcepub fn from(value: i32) -> Option<CapeRegistryValueType>
pub fn from(value: i32) -> Option<CapeRegistryValueType>
convert from i32 to CapeRegistryValueType
§Arguments
value- i32 value to be converted to CapeRegistryValueType
§Examples
use cobia;
let v0=cobia::CapeRegistryValueType::from(0);
assert_eq!(v0.unwrap(),cobia::CapeRegistryValueType::String);
let v1=cobia::CapeRegistryValueType::from(1);
assert_eq!(v1.unwrap(),cobia::CapeRegistryValueType::Integer);
let v2=cobia::CapeRegistryValueType::from(2);
assert_eq!(v2.unwrap(),cobia::CapeRegistryValueType::UUID);
let v3=cobia::CapeRegistryValueType::from(3);
assert_eq!(v3.unwrap(),cobia::CapeRegistryValueType::Empty);
let v4=cobia::CapeRegistryValueType::from(-1);
assert_eq!(v4,None);Sourcepub fn iter() -> CapeRegistryValueTypeIterator ⓘ
pub fn iter() -> CapeRegistryValueTypeIterator ⓘ
get an iterator
§Examples
use cobia;
for capeRegistryValueType in cobia::CapeRegistryValueType::iter() {
println!("{}={}",capeRegistryValueType,capeRegistryValueType as i32);
}Trait Implementations§
Source§impl Clone for CapeRegistryValueType
impl Clone for CapeRegistryValueType
Source§fn clone(&self) -> CapeRegistryValueType
fn clone(&self) -> CapeRegistryValueType
Returns a duplicate 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 CapeRegistryValueType
impl Debug for CapeRegistryValueType
Source§impl Display for CapeRegistryValueType
impl Display for CapeRegistryValueType
Source§impl PartialEq for CapeRegistryValueType
impl PartialEq for CapeRegistryValueType
impl Copy for CapeRegistryValueType
impl Eq for CapeRegistryValueType
impl StructuralPartialEq for CapeRegistryValueType
Auto Trait Implementations§
impl Freeze for CapeRegistryValueType
impl RefUnwindSafe for CapeRegistryValueType
impl Send for CapeRegistryValueType
impl Sync for CapeRegistryValueType
impl Unpin for CapeRegistryValueType
impl UnwindSafe for CapeRegistryValueType
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