pub struct FlagsValue(/* private fields */);
Expand description
Representation of a single flags value of a FlagsClass
.
Implementations§
Source§impl FlagsValue
impl FlagsValue
Sourcepub fn from_value(value: &Value) -> Vec<FlagsValue>
pub fn from_value(value: &Value) -> Vec<FlagsValue>
Convert flags values from a Value
. This returns all flags that are set.
Sourcepub fn get_class(&self) -> &FlagsClass
pub fn get_class(&self) -> &FlagsClass
Get FlagsClass
to which the flags value belongs.
Trait Implementations§
Source§impl Clone for FlagsValue
impl Clone for FlagsValue
Source§fn clone(&self) -> FlagsValue
fn clone(&self) -> FlagsValue
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 FlagsValue
impl Debug for FlagsValue
Source§impl PartialEq for FlagsValue
impl PartialEq for FlagsValue
impl Eq for FlagsValue
Auto Trait Implementations§
impl Freeze for FlagsValue
impl RefUnwindSafe for FlagsValue
impl !Send for FlagsValue
impl !Sync for FlagsValue
impl Unpin for FlagsValue
impl UnwindSafe for FlagsValue
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