Struct python::Int

source · []
pub struct Int<T: Sized> { /* private fields */ }
Expand description

Int struct, holds and _integer: i32

Implementations

Int::new(anything)

create a new Int object

let integer = Int::new(123)

Trait Implementations

Performs append

Performs append

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

debug print

Formats the value using the given formatter. Read more

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

display print

Formats the value using the given formatter. Read more

python list extend method Read more

Int::from(&str)

create new Int object from static str usage let integer = Int::from_str(“123”)

Int::from(&str)

create new Int object from static str usage let integer = Int::from_str(“123”)

this can be any of i8, i16, i32, i64, i128, i256 u8, u16, u32, u64, u128, u256 usize

Feeds this value into the given Hasher. Read more

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

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

This method tests for !=.

object trait

python repr(object)

python str(object)

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.

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

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

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.