Skip to main content

Tuple3

Struct Tuple3 

Source
#[repr(C)]
pub struct Tuple3<T1, T2, T3>(pub T1, pub T2, pub T3);

Tuple Fields§

§0: T1§1: T2§2: T3

Trait Implementations§

Source§

impl<T1: Clone, T2: Clone, T3: Clone> Clone for Tuple3<T1, T2, T3>

Source§

fn clone(&self) -> Tuple3<T1, T2, T3>

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

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

Performs copy-assignment from source. Read more
Source§

impl<T1, T2, T3> ConstructType for Tuple3<T1, T2, T3>

Source§

type Static = Tuple3<<T1 as ConstructType>::Static, <T2 as ConstructType>::Static, <T3 as ConstructType>::Static>

Self, but with all lifetimes set to 'static. This ensures Self::Static has a type id.
Source§

fn construct_type_uncached<'target, Tgt>( target: Tgt, ) -> ValueData<'target, 'static, Tgt>
where Tgt: Target<'target>,

Constructs the type object associated with this type.
Source§

fn construct_type_with_env_uncached<'target, Tgt>( target: Tgt, env: &TypeVarEnv<'_>, ) -> ValueData<'target, 'static, Tgt>
where Tgt: Target<'target>,

Constructs the type object associated with this type. Read more
Source§

fn base_type<'target, Tgt>(target: &Tgt) -> Option<Value<'target, 'static>>
where Tgt: Target<'target>,

Returns the base type object associated with this type. Read more
Source§

const CACHEABLE: bool = true

Indicates whether the type might be cacheable. Read more
Source§

fn type_id() -> TypeId

Returns the TypeId of Self::Static.
Source§

fn construct_type<'target, Tgt>(target: Tgt) -> ValueData<'target, 'static, Tgt>
where Tgt: Target<'target>,

Construct the type object and try to cache the result. If a cached entry is available, it is returned.
Source§

fn construct_type_with_env<'target, Tgt>( target: Tgt, env: &TypeVarEnv<'_>, ) -> ValueData<'target, 'static, Tgt>
where Tgt: Target<'target>,

Construct the type object with an environment of TypeVars and try to cache the result. If a cached entry is available, it is returned. Read more
Source§

impl<T1, T2, T3> Copy for Tuple3<T1, T2, T3>
where T1: IntoJulia + Debug + Copy, T2: IntoJulia + Debug + Copy, T3: IntoJulia + Debug + Copy,

Source§

impl<T1: Debug, T2: Debug, T3: Debug> Debug for Tuple3<T1, T2, T3>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<T1: Eq, T2: Eq, T3: Eq> Eq for Tuple3<T1, T2, T3>

Source§

impl<T1, T2, T3> IntoJulia for Tuple3<T1, T2, T3>

Source§

fn julia_type<'scope, Tgt>(target: Tgt) -> DataTypeData<'scope, Tgt>
where Tgt: Target<'scope>,

Returns the associated Julia type of the implementor. Read more
Source§

impl<T1, T2, T3> IsBits for Tuple3<T1, T2, T3>

Source§

impl<T1: PartialEq, T2: PartialEq, T3: PartialEq> PartialEq for Tuple3<T1, T2, T3>

Source§

fn eq(&self, other: &Tuple3<T1, T2, T3>) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl<T1: PartialEq, T2: PartialEq, T3: PartialEq> StructuralPartialEq for Tuple3<T1, T2, T3>

Source§

impl<T1, T2, T3> Typecheck for Tuple3<T1, T2, T3>
where T1: ValidField + Clone + Debug, T2: ValidField + Clone + Debug, T3: ValidField + Clone + Debug,

Source§

fn typecheck(t: DataType<'_>) -> bool

Returns whether the property implied by Self holds true.
Source§

impl<T1, T2, T3> Unbox for Tuple3<T1, T2, T3>
where T1: ValidField + Clone + Debug, T2: ValidField + Clone + Debug, T3: ValidField + Clone + Debug,

Source§

type Output = Tuple3<T1, T2, T3>

The type of the unboxed data. Must be #[repr(C)].
Source§

unsafe fn unbox(value: Value<'_, '_>) -> Self::Output

Unbox the value as Self::Output. Read more
Source§

impl<T1, T2, T3> ValidField for Tuple3<T1, T2, T3>
where T1: ValidField + Clone + Debug, T2: ValidField + Clone + Debug, T3: ValidField + Clone + Debug,

Source§

fn valid_field(v: Value<'_, '_>) -> bool

Returns true if Self is the correct representation for Julia data of type ty when it’s used as a field type.
Source§

impl<T1, T2, T3> ValidLayout for Tuple3<T1, T2, T3>
where T1: ValidField + Clone + Debug, T2: ValidField + Clone + Debug, T3: ValidField + Clone + Debug,

Source§

const IS_REF: bool = false

Must be true if the Rust type is a managed type.
Source§

fn valid_layout(v: Value<'_, '_>) -> bool

Check if the layout of the implementor is compatible with the layout of ty. Read more
Source§

fn type_object<'target, Tgt>(_: &Tgt) -> Value<'target, 'static>
where Tgt: Target<'target>,

Returns the type object this layout is associated with.

Auto Trait Implementations§

§

impl<T1, T2, T3> Freeze for Tuple3<T1, T2, T3>
where T1: Freeze, T2: Freeze, T3: Freeze,

§

impl<T1, T2, T3> RefUnwindSafe for Tuple3<T1, T2, T3>

§

impl<T1, T2, T3> Send for Tuple3<T1, T2, T3>
where T1: Send, T2: Send, T3: Send,

§

impl<T1, T2, T3> Sync for Tuple3<T1, T2, T3>
where T1: Sync, T2: Sync, T3: Sync,

§

impl<T1, T2, T3> Unpin for Tuple3<T1, T2, T3>
where T1: Unpin, T2: Unpin, T3: Unpin,

§

impl<T1, T2, T3> UnsafeUnpin for Tuple3<T1, T2, T3>
where T1: UnsafeUnpin, T2: UnsafeUnpin, T3: UnsafeUnpin,

§

impl<T1, T2, T3> UnwindSafe for Tuple3<T1, T2, T3>
where T1: UnwindSafe, T2: UnwindSafe, T3: UnwindSafe,

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<T> AttachParachute for T
where T: 'static + Send + Sync,

Source§

fn attach_parachute<'scope, Tgt: Target<'scope>>( self, target: Tgt, ) -> WithParachute<'scope, Self>

Attach a parachute to this data. Read more
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> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> Compatible<T> for T
where T: ValidLayout,

Source§

impl<T> CompatibleCast for T
where T: ValidLayout,

Source§

type Inner = T

Source§

type Output<U> = U

Source§

fn compatible_cast<U>(&self) -> &<T as CompatibleCast>::Output<U>
where T: Compatible<U>,

Converts &Self to &U, &[Self] to &[U], and &[Self; N] to &[U; N].
Source§

fn compatible_cast_mut<U>(&mut self) -> &mut <T as CompatibleCast>::Output<U>
where T: Compatible<U>,

Converts &mut Self to &mut U, &mut [Self] to &mut [U], and &mut [Self; N] to &mut [U; N].
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<'scope, 'data, T> HasLayout<'scope, 'data> for T

Source§

type Layout = T

The layout associated with this type constructor.
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<T> ToOwned for T
where T: Clone,

Source§

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

Source§

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

Source§

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.