Struct druid::piet::cairo::glib::FlagsValue
pub struct FlagsValue(_);
Expand description
Representation of a single flags value of a FlagsClass
.
Implementations§
§impl FlagsValue
impl FlagsValue
pub fn to_value(&self, flags: &FlagsClass) -> Value
pub fn to_value(&self, flags: &FlagsClass) -> Value
Convert flags value to a Value
.
pub fn from_value(
value: &Value
) -> Option<(FlagsClass, Vec<&FlagsValue, Global>)>
pub fn from_value( value: &Value ) -> Option<(FlagsClass, Vec<&FlagsValue, Global>)>
Convert flags values from a Value
. This returns all flags that are set.
Trait Implementations§
§impl Debug for FlagsValue
impl Debug for FlagsValue
§impl PartialEq<FlagsValue> for FlagsValue
impl PartialEq<FlagsValue> for FlagsValue
§fn eq(&self, other: &FlagsValue) -> bool
fn eq(&self, other: &FlagsValue) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for FlagsValue
impl Send for FlagsValue
impl Sync for FlagsValue
Auto Trait Implementations§
Blanket Implementations§
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
§impl<T> RoundFrom<T> for T
impl<T> RoundFrom<T> for T
§fn round_from(x: T) -> T
fn round_from(x: T) -> T
Performs the conversion.
§impl<T, U> RoundInto<U> for Twhere
U: RoundFrom<T>,
impl<T, U> RoundInto<U> for Twhere U: RoundFrom<T>,
§fn round_into(self) -> U
fn round_into(self) -> U
Performs the conversion.