Struct gdk4::ContentFormatsBuilder[][src]

#[repr(transparent)]
pub struct ContentFormatsBuilder(_);
Expand description

A ContentFormatsBuilder is an auxiliary struct used to create new ContentFormats, and should not be kept around.

Implementations

Create a new ContentFormatsBuilder object.

The resulting builder would create an empty ContentFormats. Use addition functions to add types to it.

Returns

a new ContentFormatsBuilder

Appends all formats from @formats to @self, skipping those that already exist.

formats

the formats to add

Appends @type_ to @self if it has not already been added.

type_

a GType

Appends @mime_type to @self if it has not already been added.

mime_type

a mime type

Creates a new ContentFormats from the given @self.

The given ContentFormatsBuilder is reset once this function returns; you cannot call this function multiple times on the same @self instance.

This function is intended primarily for bindings. C code should use Gdk::ContentFormatsBuilder::free_to_formats().

Returns

the newly created ContentFormats with all the formats added to @self

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Feeds this value into the given Hasher. Read more

Feeds a slice of this type into the given Hasher. Read more

This method returns an Ordering between self and other. Read more

Compares and returns the maximum of two values. Read more

Compares and returns the minimum of two values. Read more

Restrict a value to a certain interval. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

This method returns an ordering between self and other values if one exists. Read more

This method tests less than (for self and other) and is used by the < operator. Read more

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

This method tests greater than (for self and other) and is used by the > operator. Read more

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

Returns the type identifier of Self.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.