Struct gdk4::ContentFormats
source · [−]#[repr(transparent)]pub struct ContentFormats { /* private fields */ }
Implementations
sourceimpl ContentFormats
impl ContentFormats
pub fn new(mime_types: &[&str]) -> ContentFormats
pub fn for_type(type_: Type) -> ContentFormats
pub fn contains_type(&self, type_: Type) -> bool
pub fn contain_mime_type(&self, mime_type: &str) -> bool
pub fn mime_types(&self) -> Vec<GString>
pub fn match_(&self, second: &ContentFormats) -> bool
pub fn match_type(&self, second: &ContentFormats) -> Type
pub fn match_mime_type(&self, second: &ContentFormats) -> Option<GString>
pub fn to_str(&self) -> GString
pub fn union(&self, second: &ContentFormats) -> ContentFormats
pub fn union_deserialize_types(&self) -> ContentFormats
pub fn union_deserialize_mime_types(&self) -> ContentFormats
pub fn union_serialize_types(&self) -> ContentFormats
pub fn union_serialize_mime_types(&self) -> ContentFormats
pub fn parse(string: &str) -> Result<ContentFormats, BoolError>
v4_4
only.sourceimpl ContentFormats
impl ContentFormats
pub fn types(&self) -> Vec<Type>
sourcepub fn builder() -> ContentFormatsBuilder
pub fn builder() -> ContentFormatsBuilder
Creates a new builder-pattern struct instance to construct ContentFormats
objects.
This method returns an instance of ContentFormatsBuilder
which can be used to create ContentFormats
objects.
Trait Implementations
sourceimpl Clone for ContentFormats
impl Clone for ContentFormats
sourceimpl Debug for ContentFormats
impl Debug for ContentFormats
sourceimpl Display for ContentFormats
impl Display for ContentFormats
sourceimpl FromStr for ContentFormats
Available on crate feature v4_4
only.
impl FromStr for ContentFormats
v4_4
only.sourceimpl Hash for ContentFormats
impl Hash for ContentFormats
sourceimpl Ord for ContentFormats
impl Ord for ContentFormats
sourcefn cmp(&self, other: &ContentFormats) -> Ordering
fn cmp(&self, other: &ContentFormats) -> Ordering
1.21.0 · sourcefn max(self, other: Self) -> Self
fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
1.21.0 · sourcefn min(self, other: Self) -> Self
fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
1.50.0 · sourcefn clamp(self, min: Self, max: Self) -> Self where
Self: PartialOrd<Self>,
fn clamp(self, min: Self, max: Self) -> Self where
Self: PartialOrd<Self>,
Restrict a value to a certain interval. Read more
sourceimpl PartialEq<ContentFormats> for ContentFormats
impl PartialEq<ContentFormats> for ContentFormats
sourcefn eq(&self, other: &ContentFormats) -> bool
fn eq(&self, other: &ContentFormats) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourceimpl PartialOrd<ContentFormats> for ContentFormats
impl PartialOrd<ContentFormats> for ContentFormats
sourcefn partial_cmp(&self, other: &ContentFormats) -> Option<Ordering>
fn partial_cmp(&self, other: &ContentFormats) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
sourceimpl StaticType for ContentFormats
impl StaticType for ContentFormats
sourcefn static_type() -> Type
fn static_type() -> Type
Returns the type identifier of Self
.
impl Eq for ContentFormats
impl StructuralEq for ContentFormats
impl StructuralPartialEq for ContentFormats
Auto Trait Implementations
impl RefUnwindSafe for ContentFormats
impl !Send for ContentFormats
impl !Sync for ContentFormats
impl Unpin for ContentFormats
impl UnwindSafe for ContentFormats
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> StaticTypeExt for T where
T: StaticType,
impl<T> StaticTypeExt for T where
T: StaticType,
sourcefn ensure_type()
fn ensure_type()
Ensures that the type has been registered with the type system.