Struct protocol::types::String[][src]

pub struct String<S: Integer = u32> {
    pub value: String,
    // some fields omitted
}
Expand description

A string with a custom size prefix integer type. S - The size prefix type.

Fields

value: String

Implementations

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

The textual name of the type.

Reads a value from a stream. Read more

Writes a value to a stream.

Reads a new item with a fresh set of hints. Read more

Writes a value to a stream.

Convers the value into a byte stream that implements std::io::Read.

Parses a new value from its raw byte representation. Read more

Parses a new value from its raw byte representation. Read more

Gets the raw byte representation of the value.

Gets the raw bytes of this type as a field of a larger type.

Gets the name of the type; Parcel::TYPE_NAME.

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

This method tests for !=.

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)

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.