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