Struct gtk::JunctionSides
source · [−]pub struct JunctionSides { /* private fields */ }Implementations
sourceimpl JunctionSides
impl JunctionSides
pub const NONE: JunctionSides = _
pub const CORNER_TOPLEFT: JunctionSides = _
pub const CORNER_TOPRIGHT: JunctionSides = _
pub const CORNER_BOTTOMLEFT: JunctionSides = _
pub const CORNER_BOTTOMRIGHT: JunctionSides = _
pub const TOP: JunctionSides = _
pub const BOTTOM: JunctionSides = _
pub const LEFT: JunctionSides = _
pub const RIGHT: JunctionSides = _
sourcepub const fn empty() -> JunctionSides
pub const fn empty() -> JunctionSides
Returns an empty set of flags
sourcepub const fn all() -> JunctionSides
pub const fn all() -> JunctionSides
Returns the set containing all flags.
sourcepub fn from_bits(bits: u32) -> Option<JunctionSides>
pub fn from_bits(bits: u32) -> Option<JunctionSides>
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) -> JunctionSides
pub const fn from_bits_truncate(bits: u32) -> JunctionSides
Convert from underlying bit representation, dropping any bits that do not correspond to flags.
sourcepub const unsafe fn from_bits_unchecked(bits: u32) -> JunctionSides
pub const unsafe fn from_bits_unchecked(bits: u32) -> JunctionSides
Convert from underlying bit representation, preserving all bits (even those not corresponding to a defined flag).
sourcepub const fn intersects(&self, other: JunctionSides) -> bool
pub const fn intersects(&self, other: JunctionSides) -> bool
Returns true if there are flags common to both self and other.
sourcepub const fn contains(&self, other: JunctionSides) -> bool
pub const fn contains(&self, other: JunctionSides) -> bool
Returns true all of the flags in other are contained within self.
sourcepub fn insert(&mut self, other: JunctionSides)
pub fn insert(&mut self, other: JunctionSides)
Inserts the specified flags in-place.
sourcepub fn remove(&mut self, other: JunctionSides)
pub fn remove(&mut self, other: JunctionSides)
Removes the specified flags in-place.
sourcepub fn toggle(&mut self, other: JunctionSides)
pub fn toggle(&mut self, other: JunctionSides)
Toggles the specified flags in-place.
sourcepub fn set(&mut self, other: JunctionSides, value: bool)
pub fn set(&mut self, other: JunctionSides, value: bool)
Inserts or removes the specified flags depending on the passed value.
Trait Implementations
sourceimpl Binary for JunctionSides
impl Binary for JunctionSides
sourceimpl BitAnd<JunctionSides> for JunctionSides
impl BitAnd<JunctionSides> for JunctionSides
sourcefn bitand(self, other: JunctionSides) -> JunctionSides
fn bitand(self, other: JunctionSides) -> JunctionSides
Returns the intersection between the two sets of flags.
type Output = JunctionSides
type Output = JunctionSides
& operator.sourceimpl BitAndAssign<JunctionSides> for JunctionSides
impl BitAndAssign<JunctionSides> for JunctionSides
sourcefn bitand_assign(&mut self, other: JunctionSides)
fn bitand_assign(&mut self, other: JunctionSides)
Disables all flags disabled in the set.
sourceimpl BitOr<JunctionSides> for JunctionSides
impl BitOr<JunctionSides> for JunctionSides
sourcefn bitor(self, other: JunctionSides) -> JunctionSides
fn bitor(self, other: JunctionSides) -> JunctionSides
Returns the union of the two sets of flags.
type Output = JunctionSides
type Output = JunctionSides
| operator.sourceimpl BitOrAssign<JunctionSides> for JunctionSides
impl BitOrAssign<JunctionSides> for JunctionSides
sourcefn bitor_assign(&mut self, other: JunctionSides)
fn bitor_assign(&mut self, other: JunctionSides)
Adds the set of flags.
sourceimpl BitXor<JunctionSides> for JunctionSides
impl BitXor<JunctionSides> for JunctionSides
sourcefn bitxor(self, other: JunctionSides) -> JunctionSides
fn bitxor(self, other: JunctionSides) -> JunctionSides
Returns the left flags, but with all the right flags toggled.
type Output = JunctionSides
type Output = JunctionSides
^ operator.sourceimpl BitXorAssign<JunctionSides> for JunctionSides
impl BitXorAssign<JunctionSides> for JunctionSides
sourcefn bitxor_assign(&mut self, other: JunctionSides)
fn bitxor_assign(&mut self, other: JunctionSides)
Toggles the set of flags.
sourceimpl Clone for JunctionSides
impl Clone for JunctionSides
sourcefn clone(&self) -> JunctionSides
fn clone(&self) -> JunctionSides
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresourceimpl Debug for JunctionSides
impl Debug for JunctionSides
sourceimpl Extend<JunctionSides> for JunctionSides
impl Extend<JunctionSides> for JunctionSides
sourcefn extend<T: IntoIterator<Item = JunctionSides>>(&mut self, iterator: T)
fn extend<T: IntoIterator<Item = JunctionSides>>(&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<JunctionSides> for JunctionSides
impl FromIterator<JunctionSides> for JunctionSides
sourcefn from_iter<T: IntoIterator<Item = JunctionSides>>(
iterator: T
) -> JunctionSides
fn from_iter<T: IntoIterator<Item = JunctionSides>>(
iterator: T
) -> JunctionSides
sourceimpl<'a> FromValue<'a> for JunctionSides
impl<'a> FromValue<'a> for JunctionSides
unsafe fn from_value(value: &Value) -> Self
sourceimpl<'a> FromValueOptional<'a> for JunctionSides
impl<'a> FromValueOptional<'a> for JunctionSides
unsafe fn from_value_optional(value: &Value) -> Option<Self>
sourceimpl Hash for JunctionSides
impl Hash for JunctionSides
sourceimpl LowerHex for JunctionSides
impl LowerHex for JunctionSides
sourceimpl Not for JunctionSides
impl Not for JunctionSides
sourcefn not(self) -> JunctionSides
fn not(self) -> JunctionSides
Returns the complement of this set of flags.
type Output = JunctionSides
type Output = JunctionSides
! operator.sourceimpl Octal for JunctionSides
impl Octal for JunctionSides
sourceimpl Ord for JunctionSides
impl Ord for JunctionSides
sourcefn cmp(&self, other: &JunctionSides) -> Ordering
fn cmp(&self, other: &JunctionSides) -> 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<JunctionSides> for JunctionSides
impl PartialEq<JunctionSides> for JunctionSides
sourcefn eq(&self, other: &JunctionSides) -> bool
fn eq(&self, other: &JunctionSides) -> bool
sourceimpl PartialOrd<JunctionSides> for JunctionSides
impl PartialOrd<JunctionSides> for JunctionSides
sourcefn partial_cmp(&self, other: &JunctionSides) -> Option<Ordering>
fn partial_cmp(&self, other: &JunctionSides) -> 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 JunctionSides
impl StaticType for JunctionSides
sourcefn static_type() -> Type
fn static_type() -> Type
Self.sourceimpl Sub<JunctionSides> for JunctionSides
impl Sub<JunctionSides> for JunctionSides
sourcefn sub(self, other: JunctionSides) -> JunctionSides
fn sub(self, other: JunctionSides) -> JunctionSides
Returns the set difference of the two sets of flags.
type Output = JunctionSides
type Output = JunctionSides
- operator.sourceimpl SubAssign<JunctionSides> for JunctionSides
impl SubAssign<JunctionSides> for JunctionSides
sourcefn sub_assign(&mut self, other: JunctionSides)
fn sub_assign(&mut self, other: JunctionSides)
Disables all flags enabled in the set.
sourceimpl UpperHex for JunctionSides
impl UpperHex for JunctionSides
impl Copy for JunctionSides
impl Eq for JunctionSides
impl StructuralEq for JunctionSides
impl StructuralPartialEq for JunctionSides
Auto Trait Implementations
impl RefUnwindSafe for JunctionSides
impl Send for JunctionSides
impl Sync for JunctionSides
impl Unpin for JunctionSides
impl UnwindSafe for JunctionSides
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.