Struct metatype::Slice[][src]

pub struct Slice {
    pub len: usize,
}
Expand description

Meta data for a slice

Fields

len: usize

Number of elements in the slice

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

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)

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.

Retrieve TraitObject, Slice or Concrete meta data respectively for a type

Retrieve pointer to the data

Retrieve mut pointer to the data

Create a dangling non-null *const Self with the provided Self::Meta.

Create a *mut Self with the provided Self::Meta.

Enum describing whether a type is TraitObject, Slice or Concrete.

type Meta: 'static

Type of metadata for type.

Helper method describing whether a type is TraitObject, Slice or Concrete.

Enum describing whether a type is TraitObject, Slice or Concrete.

Type of metadata for type.

Retrieve TraitObject, Slice or Concrete meta data respectively for a type

Retrieve pointer to the data

Retrieve mut pointer to the data

Create a dangling non-null *const Self with the provided Self::Meta.

Create a *mut Self with the provided Self::Meta.

Helper method describing whether a type is TraitObject, Slice or Concrete.