pub struct BasicBag;

Trait Implementations§

source§

impl Clone for BasicBag

source§

fn clone(&self) -> BasicBag

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl ConstantBag for BasicBag

§

type Constant = ConstantData

source§

fn make_constant<C: Constant>( &self, constant: BorrowedConstant<'_, C> ) -> Self::Constant

source§

fn make_int(&self, value: BigInt) -> Self::Constant

source§

fn make_tuple( &self, elements: impl Iterator<Item = Self::Constant> ) -> Self::Constant

source§

fn make_code(&self, code: CodeObject<Self::Constant>) -> Self::Constant

source§

fn make_name(&self, name: &str) -> <Self::Constant as Constant>::Name

source§

impl Copy for BasicBag

Auto Trait Implementations§

Blanket Implementations§

source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<Bag> AsBag for Bag
where Bag: ConstantBag,

§

type Bag = Bag

source§

fn as_bag(self) -> Bag

source§

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

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

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

source§

fn exact_from(value: T) -> U

source§

impl<T, U> ExactInto<U> for T
where U: ExactFrom<T>,

source§

fn exact_into(self) -> U

source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

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

source§

fn into(self) -> U

Calls U::from(self).

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

source§

impl<Bag> MarshalBag for Bag
where Bag: ConstantBag,

§

type Value = <Bag as ConstantBag>::Constant

source§

fn make_bool(&self, value: bool) -> <Bag as MarshalBag>::Value

source§

fn make_none(&self) -> <Bag as MarshalBag>::Value

source§

fn make_ellipsis(&self) -> <Bag as MarshalBag>::Value

source§

fn make_float(&self, value: f64) -> <Bag as MarshalBag>::Value

source§

fn make_complex(&self, value: Complex<f64>) -> <Bag as MarshalBag>::Value

source§

fn make_str(&self, value: &str) -> <Bag as MarshalBag>::Value

source§

fn make_bytes(&self, value: &[u8]) -> <Bag as MarshalBag>::Value

source§

fn make_int(&self, value: BigInt) -> <Bag as MarshalBag>::Value

source§

fn make_tuple( &self, elements: impl Iterator<Item = <Bag as MarshalBag>::Value> ) -> <Bag as MarshalBag>::Value

source§

fn make_code( &self, code: CodeObject<<<Bag as MarshalBag>::ConstantBag as ConstantBag>::Constant> ) -> <Bag as MarshalBag>::Value

source§

fn make_stop_iter(&self) -> Result<<Bag as MarshalBag>::Value, MarshalError>

source§

fn make_list( &self, _: impl Iterator<Item = <Bag as MarshalBag>::Value> ) -> Result<<Bag as MarshalBag>::Value, MarshalError>

source§

fn make_set( &self, _: impl Iterator<Item = <Bag as MarshalBag>::Value> ) -> Result<<Bag as MarshalBag>::Value, MarshalError>

source§

fn make_frozenset( &self, _: impl Iterator<Item = <Bag as MarshalBag>::Value> ) -> Result<<Bag as MarshalBag>::Value, MarshalError>

source§

fn make_dict( &self, _: impl Iterator<Item = (<Bag as MarshalBag>::Value, <Bag as MarshalBag>::Value)> ) -> Result<<Bag as MarshalBag>::Value, MarshalError>

§

type ConstantBag = Bag

source§

fn constant_bag(self) -> <Bag as MarshalBag>::ConstantBag

source§

impl<T, U> OverflowingInto<U> for T
where U: OverflowingFrom<T>,

source§

impl<T, U> RoundingInto<U> for T
where U: RoundingFrom<T>,

source§

impl<T, U> SaturatingInto<U> for T
where U: SaturatingFrom<T>,

source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

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

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

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

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T, U> WrappingInto<U> for T
where U: WrappingFrom<T>,

source§

fn wrapping_into(self) -> U