Enum librsnek::modules::builtins::types::Type [] [src]

pub enum Type {
    Object(RefCountedValue<ObjectValue, RefCount>),
    None(RefCountedValue<NoneValue, RefCount>),
    Bool(RefCountedValue<BoolValue, RefCount>),
    Int(RefCountedValue<IntValue, RefCount>),
    Float(RefCountedValue<FloatValue, RefCount>),
    Iter(RefCountedValue<IteratorValue, RefCount>),
    Complex(RefCountedValue<ComplexValue, RefCount>),
    Str(RefCountedValue<StringValue, RefCount>),
    Bytes(RefCountedValue<StringValue, RefCount>),
    Dict(RefCountedValue<DictValue, RefCount>),
    Tuple(RefCountedValue<TupleValue, RefCount>),
    List(RefCountedValue<ListValue, RefCount>),
    Type(RefCountedValue<TypeValue, RefCount>),
    Function(RefCountedValue<FuncValue, RefCount>),
    Module(RefCountedValue<ObjectValue, RefCount>),
    Code(RefCountedValue<CodeValue, RefCount>),
    Frame(RefCountedValue<FrameValue, RefCount>),
    Set(RefCountedValue<SetValue, RefCount>),
    FrozenSet(RefCountedValue<FrozenSetValue, RefCount>),
    DictKey(DictKey),
}

Variants

Methods

impl Type
[src]

Since we do not have actual type objects just statically map the names of

Trait Implementations

impl PartialEq for Type
[src]

This method tests for self and other values to be equal, and is used

This method tests for !=.

impl Eq for Type
[src]

impl Debug for Type
[src]

Formats the value using the given formatter.

impl Display for Type
[src]

Formats the value using the given formatter.

impl Iterator for Type
[src]

The type of the elements being iterated over.

Advances the iterator and returns the next value.

Returns the bounds on the remaining length of the iterator.

Consumes the iterator, counting the number of iterations and returning it.

Consumes the iterator, returning the last element.

Returns the nth element of the iterator.

Takes two iterators and creates a new iterator over both in sequence.

'Zips up' two iterators into a single iterator of pairs.

Takes a closure and creates an iterator which calls that closure on each

Creates an iterator which uses a closure to determine if an element

Creates an iterator that both filters and maps.

Creates an iterator which gives the current iteration count as well as

Creates an iterator which can use peek to look at the next element of

Creates an iterator that [skip]s elements based on a predicate.

Creates an iterator that yields elements based on a predicate.

Creates an iterator that skips the first n elements.

Creates an iterator that yields its first n elements.

An iterator adaptor similar to [fold] that holds internal state and

Creates an iterator that works like map, but flattens nested structure.

Creates an iterator which ends after the first [None].

Do something with each element of an iterator, passing the value on.

Borrows an iterator, rather than consuming it.

Transforms an iterator into a collection.

Consumes an iterator, creating two collections from it.

An iterator adaptor that applies a function, producing a single, final value.

Tests if every element of the iterator matches a predicate.

Tests if any element of the iterator matches a predicate.

Searches for an element of an iterator that satisfies a predicate.

Searches for an element in an iterator, returning its index.

Searches for an element in an iterator from the right, returning its

Returns the maximum element of an iterator.

Returns the minimum element of an iterator.

Returns the element that gives the maximum value from the

Returns the element that gives the maximum value with respect to the

Returns the element that gives the minimum value from the

Returns the element that gives the minimum value with respect to the

Reverses an iterator's direction.

Converts an iterator of pairs into a pair of containers.

Creates an iterator which [clone]s all of its elements.

Repeats an iterator endlessly.

Sums the elements of an iterator.

Iterates over the entire iterator, multiplying all the elements

Lexicographically compares the elements of this Iterator with those

Lexicographically compares the elements of this Iterator with those

Determines if the elements of this Iterator are equal to those of

Determines if the elements of this Iterator are unequal to those of

Determines if the elements of this Iterator are lexicographically

Determines if the elements of this Iterator are lexicographically

Determines if the elements of this Iterator are lexicographically

Determines if the elements of this Iterator are lexicographically

impl Hash for Type
[src]

Feeds this value into the given [Hasher].

Feeds a slice of this type into the given [Hasher].

impl SelfRef for Type
[src]

impl PyAPI for Type
[src]

impl GetAttr for Type
[src]

Runtime API Method $pyname

Native API Method $pyname

impl SetAttr for Type
[src]

Runtime API Method $pyname

Native API Method $pyname

impl Id for Type
[src]

impl Is for Type
[src]

impl IsNot for Type
[src]

impl Hashed for Type
[src]

Runtime API Method $pyname

Native API Method $pyname

impl StringCast for Type
[src]

Runtime API Method $pyname

Native API Method $pyname

impl BytesCast for Type
[src]

Runtime API Method $pyname

Native API Method $pyname

impl StringFormat for Type
[src]

Runtime API Method $pyname

Native API Method $pyname

impl StringRepresentation for Type
[src]

Runtime API Method $pyname

Native API Method $pyname

impl Equal for Type
[src]

Default implementation of equals fallsbacks to op_is.

Default implementation of equals fallsbacks to op_is.

impl NotEqual for Type
[src]

Default implementation of equals fallsbacks to !op_is

Default implementation of equals fallsbacks to op_is.

impl LessThan for Type
[src]

Runtime API Method $pyname

Native API Method $pyname

impl LessOrEqual for Type
[src]

Runtime API Method $pyname

Native API Method $pyname

impl GreaterOrEqual for Type
[src]

Runtime API Method $pyname

Native API Method $pyname

impl GreaterThan for Type
[src]

Runtime API Method $pyname

Native API Method $pyname

impl BooleanCast for Type
[src]

Runtime API Method $pyname

Native API Method $pyname

impl IntegerCast for Type
[src]

Runtime API Method $pyname

Native API Method $pyname

impl FloatCast for Type
[src]

Runtime API Method $pyname

Native API Method $pyname

impl ComplexCast for Type
[src]

Runtime API Method $pyname

Native API Method $pyname

impl Index for Type
[src]

Runtime API Method $pyname

Native API Method $pyname

impl NegateValue for Type
[src]

Runtime API Method $pyname

Native API Method $pyname

impl AbsValue for Type
[src]

Runtime API Method $pyname

Native API Method $pyname

impl PositiveValue for Type
[src]

Runtime API Method $pyname

Native API Method $pyname

impl InvertValue for Type
[src]

Runtime API Method $pyname

Native API Method $pyname

impl Add for Type
[src]

Runtime API Method $pyname

Native API Method $pyname

impl BitwiseAnd for Type
[src]

Runtime API Method $pyname

Native API Method $pyname

impl DivMod for Type
[src]

Runtime API Method $pyname

Native API Method $pyname

impl FloorDivision for Type
[src]

Runtime API Method $pyname

Native API Method $pyname

impl LeftShift for Type
[src]

Runtime API Method $pyname

Native API Method $pyname

impl Modulus for Type
[src]

Runtime API Method $pyname

Native API Method $pyname

impl Multiply for Type
[src]

Runtime API Method $pyname

Native API Method $pyname

impl MatrixMultiply for Type
[src]

Runtime API Method $pyname

Native API Method $pyname

impl BitwiseOr for Type
[src]

Runtime API Method $pyname

Native API Method $pyname

impl Pow for Type
[src]

Runtime API Method $pyname

Native API Method $pyname

impl RightShift for Type
[src]

Runtime API Method $pyname

Native API Method $pyname

impl Subtract for Type
[src]

Runtime API Method $pyname

Native API Method $pyname

impl TrueDivision for Type
[src]

Runtime API Method $pyname

Native API Method $pyname

impl XOr for Type
[src]

Runtime API Method $pyname

Native API Method $pyname

impl InPlaceAdd for Type
[src]

Runtime API Method $pyname

Native API Method $pyname

impl InPlaceBitwiseAnd for Type
[src]

Runtime API Method $pyname

Native API Method $pyname

impl InPlaceDivMod for Type
[src]

Runtime API Method $pyname

Native API Method $pyname

impl InPlaceFloorDivision for Type
[src]

Runtime API Method $pyname

Native API Method $pyname

impl InPlaceLeftShift for Type
[src]

Runtime API Method $pyname

Native API Method $pyname

impl InPlaceModulus for Type
[src]

Runtime API Method $pyname

Native API Method $pyname

impl InPlaceMultiply for Type
[src]

Runtime API Method $pyname

Native API Method $pyname

impl InPlaceMatrixMultiply for Type
[src]

Runtime API Method $pyname

Native API Method $pyname

impl InPlaceBitwiseOr for Type
[src]

Runtime API Method $pyname

Native API Method $pyname

impl InPlacePow for Type
[src]

Runtime API Method $pyname

Native API Method $pyname

impl InPlaceRightShift for Type
[src]

Runtime API Method $pyname

Native API Method $pyname

impl InPlaceSubtract for Type
[src]

Runtime API Method $pyname

Native API Method $pyname

impl InPlaceTrueDivision for Type
[src]

Runtime API Method $pyname

Native API Method $pyname

impl InPlaceXOr for Type
[src]

Runtime API Method $pyname

Native API Method $pyname

impl Contains for Type
[src]

Runtime API Method $pyname

Native API Method $pyname

impl Iter for Type
[src]

Runtime API Method $pyname

Native API Method $pyname

impl Call for Type
[src]

Runtime API Method $pyname

Native API Method $pyname

impl Length for Type
[src]

Runtime API Method $pyname

Native API Method $pyname

impl Next for Type
[src]

Runtime API Method $pyname

Native API Method $pyname

impl GetItem for Type
[src]

Runtime API Method $pyname

Native API Method $pyname

impl SetItem for Type
[src]

Runtime API Method $pyname

Native API Method $pyname

impl DeleteItem for Type
[src]

Runtime API Method $pyname

Native API Method $pyname

impl Count for Type
[src]

Runtime API Method $pyname

Native API Method $pyname

impl Append for Type
[src]

Runtime API Method $pyname

Native API Method $pyname

impl Extend for Type
[src]

Runtime API Method $pyname

Native API Method $pyname

impl Pop for Type
[src]

Runtime API Method $pyname

Native API Method $pyname

impl Remove for Type
[src]

Runtime API Method $pyname

Native API Method $pyname

impl IsDisjoint for Type
[src]

Runtime API Method $pyname

Native API Method $pyname

impl AddItem for Type
[src]

Runtime API Method $pyname

Native API Method $pyname

impl Keys for Type
[src]

Runtime API Method $pyname

Native API Method $pyname

impl Await for Type
[src]

Runtime API Method $pyname

Native API Method $pyname

impl Clear for Type
[src]

Runtime API Method $pyname

Native API Method $pyname

impl Close for Type
[src]

Runtime API Method $pyname

Native API Method $pyname

impl DelAttr for Type
[src]

Runtime API Method $pyname

Native API Method $pyname

impl Delete for Type
[src]

Runtime API Method $pyname

Native API Method $pyname

impl DescriptorGet for Type
[src]

Runtime API Method $pyname

Native API Method $pyname

impl DescriptorSet for Type
[src]

Runtime API Method $pyname

Native API Method $pyname

impl DescriptorSetName for Type
[src]

Runtime API Method $pyname

Native API Method $pyname

impl Discard for Type
[src]

Runtime API Method $pyname

Native API Method $pyname

impl Enter for Type
[src]

Runtime API Method $pyname

Native API Method $pyname

impl Exit for Type
[src]

Runtime API Method $pyname

Native API Method $pyname

impl Get for Type
[src]

Runtime API Method $pyname

Native API Method $pyname

impl GetAttribute for Type
[src]

Runtime API Method $pyname

Native API Method $pyname

impl Init for Type
[src]

impl Items for Type
[src]

Runtime API Method $pyname

Native API Method $pyname

impl LengthHint for Type
[src]

Runtime API Method $pyname

Native API Method $pyname

impl New for Type
[src]

Runtime API Method $pyname

Native API Method $pyname

impl PopItem for Type
[src]

Runtime API Method $pyname

Native API Method $pyname

impl ReflectedAdd for Type
[src]

Runtime API Method $pyname

Native API Method $pyname

impl ReflectedBitwiseAnd for Type
[src]

Runtime API Method $pyname

Native API Method $pyname

impl ReflectedBitwiseOr for Type
[src]

Runtime API Method $pyname

Native API Method $pyname

impl ReflectedDivMod for Type
[src]

Runtime API Method $pyname

Native API Method $pyname

impl ReflectedFloorDivision for Type
[src]

Runtime API Method $pyname

Native API Method $pyname

impl ReflectedLeftShift for Type
[src]

Runtime API Method $pyname

Native API Method $pyname

impl ReflectedMatrixMultiply for Type
[src]

Runtime API Method $pyname

Native API Method $pyname

impl ReflectedModulus for Type
[src]

Runtime API Method $pyname

Native API Method $pyname

impl ReflectedMultiply for Type
[src]

Runtime API Method $pyname

Native API Method $pyname

impl ReflectedPow for Type
[src]

Runtime API Method $pyname

Native API Method $pyname

impl ReflectedRightShift for Type
[src]

Runtime API Method $pyname

Native API Method $pyname

impl ReflectedSubtract for Type
[src]

Runtime API Method $pyname

Native API Method $pyname

impl ReflectedTrueDivision for Type
[src]

Runtime API Method $pyname

Native API Method $pyname

impl ReflectedXOr for Type
[src]

Runtime API Method $pyname

Native API Method $pyname

impl Reversed for Type
[src]

Runtime API Method $pyname

Native API Method $pyname

impl Rounding for Type
[src]

Runtime API Method $pyname

Native API Method $pyname

impl Send for Type
[src]

Runtime API Method $pyname

Native API Method $pyname

impl SetDefault for Type
[src]

Runtime API Method $pyname

Native API Method $pyname

impl Throw for Type
[src]

Runtime API Method $pyname

Native API Method $pyname

impl Update for Type
[src]

Runtime API Method $pyname

Native API Method $pyname

impl Values for Type
[src]

Runtime API Method $pyname

Native API Method $pyname