Struct gtk::PlacesOpenFlags
source · [−]pub struct PlacesOpenFlags { /* private fields */ }Implementations
sourceimpl PlacesOpenFlags
impl PlacesOpenFlags
pub const NORMAL: PlacesOpenFlags = _
pub const NEW_TAB: PlacesOpenFlags = _
pub const NEW_WINDOW: PlacesOpenFlags = _
sourcepub const fn empty() -> PlacesOpenFlags
pub const fn empty() -> PlacesOpenFlags
Returns an empty set of flags
sourcepub const fn all() -> PlacesOpenFlags
pub const fn all() -> PlacesOpenFlags
Returns the set containing all flags.
sourcepub fn from_bits(bits: u32) -> Option<PlacesOpenFlags>
pub fn from_bits(bits: u32) -> Option<PlacesOpenFlags>
Convert from underlying bit representation, unless that representation contains bits that do not correspond to a flag.
sourcepub const fn from_bits_truncate(bits: u32) -> PlacesOpenFlags
pub const fn from_bits_truncate(bits: u32) -> PlacesOpenFlags
Convert from underlying bit representation, dropping any bits that do not correspond to flags.
sourcepub const unsafe fn from_bits_unchecked(bits: u32) -> PlacesOpenFlags
pub const unsafe fn from_bits_unchecked(bits: u32) -> PlacesOpenFlags
Convert from underlying bit representation, preserving all bits (even those not corresponding to a defined flag).
sourcepub const fn intersects(&self, other: PlacesOpenFlags) -> bool
pub const fn intersects(&self, other: PlacesOpenFlags) -> bool
Returns true if there are flags common to both self and other.
sourcepub const fn contains(&self, other: PlacesOpenFlags) -> bool
pub const fn contains(&self, other: PlacesOpenFlags) -> bool
Returns true all of the flags in other are contained within self.
sourcepub fn insert(&mut self, other: PlacesOpenFlags)
pub fn insert(&mut self, other: PlacesOpenFlags)
Inserts the specified flags in-place.
sourcepub fn remove(&mut self, other: PlacesOpenFlags)
pub fn remove(&mut self, other: PlacesOpenFlags)
Removes the specified flags in-place.
sourcepub fn toggle(&mut self, other: PlacesOpenFlags)
pub fn toggle(&mut self, other: PlacesOpenFlags)
Toggles the specified flags in-place.
sourcepub fn set(&mut self, other: PlacesOpenFlags, value: bool)
pub fn set(&mut self, other: PlacesOpenFlags, value: bool)
Inserts or removes the specified flags depending on the passed value.
Trait Implementations
sourceimpl Binary for PlacesOpenFlags
impl Binary for PlacesOpenFlags
sourceimpl BitAnd<PlacesOpenFlags> for PlacesOpenFlags
impl BitAnd<PlacesOpenFlags> for PlacesOpenFlags
sourcefn bitand(self, other: PlacesOpenFlags) -> PlacesOpenFlags
fn bitand(self, other: PlacesOpenFlags) -> PlacesOpenFlags
Returns the intersection between the two sets of flags.
type Output = PlacesOpenFlags
type Output = PlacesOpenFlags
& operator.sourceimpl BitAndAssign<PlacesOpenFlags> for PlacesOpenFlags
impl BitAndAssign<PlacesOpenFlags> for PlacesOpenFlags
sourcefn bitand_assign(&mut self, other: PlacesOpenFlags)
fn bitand_assign(&mut self, other: PlacesOpenFlags)
Disables all flags disabled in the set.
sourceimpl BitOr<PlacesOpenFlags> for PlacesOpenFlags
impl BitOr<PlacesOpenFlags> for PlacesOpenFlags
sourcefn bitor(self, other: PlacesOpenFlags) -> PlacesOpenFlags
fn bitor(self, other: PlacesOpenFlags) -> PlacesOpenFlags
Returns the union of the two sets of flags.
type Output = PlacesOpenFlags
type Output = PlacesOpenFlags
| operator.sourceimpl BitOrAssign<PlacesOpenFlags> for PlacesOpenFlags
impl BitOrAssign<PlacesOpenFlags> for PlacesOpenFlags
sourcefn bitor_assign(&mut self, other: PlacesOpenFlags)
fn bitor_assign(&mut self, other: PlacesOpenFlags)
Adds the set of flags.
sourceimpl BitXor<PlacesOpenFlags> for PlacesOpenFlags
impl BitXor<PlacesOpenFlags> for PlacesOpenFlags
sourcefn bitxor(self, other: PlacesOpenFlags) -> PlacesOpenFlags
fn bitxor(self, other: PlacesOpenFlags) -> PlacesOpenFlags
Returns the left flags, but with all the right flags toggled.
type Output = PlacesOpenFlags
type Output = PlacesOpenFlags
^ operator.sourceimpl BitXorAssign<PlacesOpenFlags> for PlacesOpenFlags
impl BitXorAssign<PlacesOpenFlags> for PlacesOpenFlags
sourcefn bitxor_assign(&mut self, other: PlacesOpenFlags)
fn bitxor_assign(&mut self, other: PlacesOpenFlags)
Toggles the set of flags.
sourceimpl Clone for PlacesOpenFlags
impl Clone for PlacesOpenFlags
sourcefn clone(&self) -> PlacesOpenFlags
fn clone(&self) -> PlacesOpenFlags
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresourceimpl Debug for PlacesOpenFlags
impl Debug for PlacesOpenFlags
sourceimpl Extend<PlacesOpenFlags> for PlacesOpenFlags
impl Extend<PlacesOpenFlags> for PlacesOpenFlags
sourcefn extend<T: IntoIterator<Item = PlacesOpenFlags>>(&mut self, iterator: T)
fn extend<T: IntoIterator<Item = PlacesOpenFlags>>(&mut self, iterator: T)
sourcefn extend_one(&mut self, item: A)
fn extend_one(&mut self, item: A)
extend_one)sourcefn extend_reserve(&mut self, additional: usize)
fn extend_reserve(&mut self, additional: usize)
extend_one)sourceimpl FromIterator<PlacesOpenFlags> for PlacesOpenFlags
impl FromIterator<PlacesOpenFlags> for PlacesOpenFlags
sourcefn from_iter<T: IntoIterator<Item = PlacesOpenFlags>>(
iterator: T
) -> PlacesOpenFlags
fn from_iter<T: IntoIterator<Item = PlacesOpenFlags>>(
iterator: T
) -> PlacesOpenFlags
sourceimpl<'a> FromValue<'a> for PlacesOpenFlags
impl<'a> FromValue<'a> for PlacesOpenFlags
unsafe fn from_value(value: &Value) -> Self
sourceimpl<'a> FromValueOptional<'a> for PlacesOpenFlags
impl<'a> FromValueOptional<'a> for PlacesOpenFlags
unsafe fn from_value_optional(value: &Value) -> Option<Self>
sourceimpl Hash for PlacesOpenFlags
impl Hash for PlacesOpenFlags
sourceimpl LowerHex for PlacesOpenFlags
impl LowerHex for PlacesOpenFlags
sourceimpl Not for PlacesOpenFlags
impl Not for PlacesOpenFlags
sourcefn not(self) -> PlacesOpenFlags
fn not(self) -> PlacesOpenFlags
Returns the complement of this set of flags.
type Output = PlacesOpenFlags
type Output = PlacesOpenFlags
! operator.sourceimpl Octal for PlacesOpenFlags
impl Octal for PlacesOpenFlags
sourceimpl Ord for PlacesOpenFlags
impl Ord for PlacesOpenFlags
sourcefn cmp(&self, other: &PlacesOpenFlags) -> Ordering
fn cmp(&self, other: &PlacesOpenFlags) -> Ordering
1.21.0 · sourcefn max(self, other: Self) -> Self
fn max(self, other: Self) -> Self
1.21.0 · sourcefn min(self, other: Self) -> Self
fn min(self, other: Self) -> Self
1.50.0 · sourcefn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
sourceimpl PartialEq<PlacesOpenFlags> for PlacesOpenFlags
impl PartialEq<PlacesOpenFlags> for PlacesOpenFlags
sourcefn eq(&self, other: &PlacesOpenFlags) -> bool
fn eq(&self, other: &PlacesOpenFlags) -> bool
sourceimpl PartialOrd<PlacesOpenFlags> for PlacesOpenFlags
impl PartialOrd<PlacesOpenFlags> for PlacesOpenFlags
sourcefn partial_cmp(&self, other: &PlacesOpenFlags) -> Option<Ordering>
fn partial_cmp(&self, other: &PlacesOpenFlags) -> Option<Ordering>
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self and other) and is used by the <=
operator. Read moresourceimpl StaticType for PlacesOpenFlags
impl StaticType for PlacesOpenFlags
sourcefn static_type() -> Type
fn static_type() -> Type
Self.sourceimpl Sub<PlacesOpenFlags> for PlacesOpenFlags
impl Sub<PlacesOpenFlags> for PlacesOpenFlags
sourcefn sub(self, other: PlacesOpenFlags) -> PlacesOpenFlags
fn sub(self, other: PlacesOpenFlags) -> PlacesOpenFlags
Returns the set difference of the two sets of flags.
type Output = PlacesOpenFlags
type Output = PlacesOpenFlags
- operator.sourceimpl SubAssign<PlacesOpenFlags> for PlacesOpenFlags
impl SubAssign<PlacesOpenFlags> for PlacesOpenFlags
sourcefn sub_assign(&mut self, other: PlacesOpenFlags)
fn sub_assign(&mut self, other: PlacesOpenFlags)
Disables all flags enabled in the set.
sourceimpl UpperHex for PlacesOpenFlags
impl UpperHex for PlacesOpenFlags
impl Copy for PlacesOpenFlags
impl Eq for PlacesOpenFlags
impl StructuralEq for PlacesOpenFlags
impl StructuralPartialEq for PlacesOpenFlags
Auto Trait Implementations
impl RefUnwindSafe for PlacesOpenFlags
impl Send for PlacesOpenFlags
impl Sync for PlacesOpenFlags
impl Unpin for PlacesOpenFlags
impl UnwindSafe for PlacesOpenFlags
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
sourceimpl<T> ToSendValue for Twhere
T: SetValue + Send + ToValue + ?Sized,
impl<T> ToSendValue for Twhere
T: SetValue + Send + ToValue + ?Sized,
sourcefn to_send_value(&self) -> SendValue
fn to_send_value(&self) -> SendValue
SendValue clone of self.