Struct dbus::strings::Signature[][src]

pub struct Signature<'a>(_);
Expand description

A wrapper around a string that is guaranteed to be a valid (single) D-Bus type signature.

Implementations

Creates a new instance of this struct.

Note: If the no-string-validation feature is activated, this string will not be checked for conformance with the D-Bus specification.

Creates a new instance of this struct. If you end it with \0, it can borrow the slice without extra allocation.

Note: If the no-string-validation feature is activated, this string will not be checked for conformance with the D-Bus specification.

This function creates a new instance of this struct, without checking. It’s up to you to guarantee that s ends with a \0 and is valid.

Makes sure this string does not contain borrows.

Converts this struct to a CString.

Makes a D-Bus signature that corresponds to A.

Trait Implementations

Performs the append operation by borrowing self.

Performs the append operation by consuming self.

The corresponding D-Bus argument type code.

The corresponding D-Bus type signature for this type.

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

The resulting type after dereferencing.

Dereferences the value.

Formats the value using the given formatter. Read more

#Panics

If given string is not valid.

Performs the conversion.

Performs the conversion.

#Panics

If given string is not valid.

Performs the conversion.

#Panics

If given string is not valid.

Performs the conversion.

#Panics

If given string is not valid.

Performs the conversion.

Performs the conversion.

Performs the conversion.

#Panics

If given string is not valid.

Performs the conversion.

Performs the get operation.

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

The corresponding D-Bus argument type code.

The corresponding D-Bus type signature for this type.

Performs the append operation.

Transforms this argument to Any (which can be downcasted to read the current value). Read more

Transforms this argument to Any (which can be downcasted to read the current value). Read more

Try to read the argument as a str. Read more

Deep clone of the RefArg, causing the result to be ’static. Read more

Deep clone of an array. Read more

Try to read the argument as an i64. Read more

Try to read the argument as an u64. Read more

Try to read the argument as an f64. Read more

Try to read the argument as an iterator. Read more

Try to read the inner of an argument, as another argument, specifying an index. Read more

The type returned in the event of a conversion error.

Performs the conversion.

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

Converts the given value to a String. 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.