Struct tch::Scalar[][src]

pub struct Scalar { /* fields omitted */ }
Expand description

A single scalar value.

Implementations

Creates an integer scalar.

Creates a float scalar scalar.

Returns an integer value.

Returns a float value.

Returns a string representation of the scalar.

Trait Implementations

Formats the value using the given formatter. Read more

Executes the destructor for this type. Read more

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

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 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.