pub struct AllowedValues { /* private fields */ }
Expand description
Contains the allowed values of an specific attribute, determines which data type should be used, and if the values are a range or enumeration.
Implementations§
Source§impl AllowedValues
impl AllowedValues
Sourcepub fn u8_values(&self) -> Option<&Values<u8>>
pub fn u8_values(&self) -> Option<&Values<u8>>
Returns the u8
values, if the data type isn’t DataType::U8
this will
return None
.
Sourcepub fn i8_values(&self) -> Option<&Values<i8>>
pub fn i8_values(&self) -> Option<&Values<i8>>
Returns the i8
values, if the data type isn’t DataType::I8
this will
return None
.
Sourcepub fn u16_values(&self) -> Option<&Values<u16>>
pub fn u16_values(&self) -> Option<&Values<u16>>
Returns the u16
values, if the data type isn’t DataType::U16
this will
return None
.
Sourcepub fn i16_values(&self) -> Option<&Values<i16>>
pub fn i16_values(&self) -> Option<&Values<i16>>
Returns the i16
values, if the data type isn’t DataType::I16
this will
return None
.
Sourcepub fn u32_values(&self) -> Option<&Values<u32>>
pub fn u32_values(&self) -> Option<&Values<u32>>
Returns the u32
values, if the data type isn’t DataType::U32
this will
return None
.
Sourcepub fn i32_values(&self) -> Option<&Values<i32>>
pub fn i32_values(&self) -> Option<&Values<i32>>
Returns the i32
values, if the data type isn’t DataType::I32
this will
return None
.
Sourcepub fn u64_values(&self) -> Option<&Values<u64>>
pub fn u64_values(&self) -> Option<&Values<u64>>
Returns the u64
values, if the data type isn’t DataType::U64
this will
return None
.
Sourcepub fn i64_values(&self) -> Option<&Values<i64>>
pub fn i64_values(&self) -> Option<&Values<i64>>
Returns the i64
values, if the data type isn’t DataType::I64
this will
return None
.
Trait Implementations§
Source§impl Clone for AllowedValues
impl Clone for AllowedValues
Source§fn clone(&self) -> AllowedValues
fn clone(&self) -> AllowedValues
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more