[][src]Struct artichoke_backend::extn::core::integer::Integer

pub struct Integer(_);


impl Integer[src]

#[must_use]pub const fn new() -> Self[src]

Constructs a new, default, zero Integer.

#[must_use]pub const fn as_i64(self) -> i64[src]

#[must_use]pub const fn as_f64(self) -> f64[src]

pub fn chr(
    interp: &mut Artichoke,
    encoding: Option<Value>
) -> Result<Vec<u8>, Error>

pub fn bit(self, bit: Int) -> Result<Self, Error>[src]

pub fn div(
    interp: &mut Artichoke,
    denominator: Value
) -> Result<Outcome, Error>

#[must_use]pub const fn size() -> usize[src]

Trait Implementations

impl Clone for Integer[src]

impl Convert<Integer, Value> for Artichoke[src]

impl Copy for Integer[src]

impl Debug for Integer[src]

impl Default for Integer[src]

impl Eq for Integer[src]

impl From<Integer> for i64[src]

impl From<Integer> for f64[src]

impl From<Integer> for Outcome[src]

impl From<i64> for Integer[src]

impl Hash for Integer[src]

impl Ord for Integer[src]

impl PartialEq<Integer> for Integer[src]

impl PartialOrd<Integer> for Integer[src]

impl StructuralEq for Integer[src]

impl StructuralPartialEq for Integer[src]

impl TryConvert<Value, Integer> for Artichoke[src]

type Error = Error

Error type for failed conversions.

Auto Trait Implementations

impl RefUnwindSafe for Integer

impl Send for Integer

impl Sync for Integer

impl Unpin for Integer

impl UnwindSafe for Integer

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized

impl<T> Borrow<T> for T where
    T: ?Sized

impl<T> BorrowMut<T> for T where
    T: ?Sized

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 

impl<T> ToOwned for T where
    T: Clone

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,