pub struct Line<P> { /* private fields */ }Expand description
A contiguous list of elements that supports auto-vectorized operations.
Implementations§
Source§impl<P: CubePrimitive> Line<P>
impl<P: CubePrimitive> Line<P>
pub fn __expand_new( scope: &mut Scope, val: <P as CubeType>::ExpandType, ) -> <Self as CubeType>::ExpandType
Source§impl<P: CubePrimitive> Line<P>
impl<P: CubePrimitive> Line<P>
Source§impl<P: CubePrimitive + Into<ExpandElementTyped<P>>> Line<P>
impl<P: CubePrimitive + Into<ExpandElementTyped<P>>> Line<P>
Sourcepub fn fill(self, value: P) -> Self
pub fn fill(self, value: P) -> Self
Fill the line with the given value.
If you want to fill the line with different values, consider using the index API instead.
let mut line = Line::<u32>::empty(2);
line[0] = 1;
line[1] = 2;pub fn __expand_fill( scope: &mut Scope, this: <Self as CubeType>::ExpandType, value: <P as CubeType>::ExpandType, ) -> <Self as CubeType>::ExpandType
Source§impl<P: CubePrimitive> Line<P>
impl<P: CubePrimitive> Line<P>
Sourcepub fn empty(size: usize) -> Self
pub fn empty(size: usize) -> Self
Create an empty line of the given size.
Note that a line can’t change in size once it’s fixed.
pub fn __expand_empty( scope: &mut Scope, size: usize, ) -> <Self as CubeType>::ExpandType
Source§impl<P: CubePrimitive> Line<P>
impl<P: CubePrimitive> Line<P>
Sourcepub fn size(&self) -> LineSize
pub fn size(&self) -> LineSize
Get the number of individual elements a line contains.
The size is available at comptime and may be used in combination with the comptime macro.
// The if statement is going to be executed at comptime.
if comptime!(line.size() == 1) {
}Sourcepub fn __expand_size(
scope: &mut Scope,
element: ExpandElementTyped<P>,
) -> LineSize
pub fn __expand_size( scope: &mut Scope, element: ExpandElementTyped<P>, ) -> LineSize
Expand function of size.
Source§impl<P: CubePrimitive> Line<P>
impl<P: CubePrimitive> Line<P>
Sourcepub fn equal(self, other: Self) -> Line<bool>
pub fn equal(self, other: Self) -> Line<bool>
Return a new line with the element-wise comparison of the first line being equal to the second line.
pub fn __expand_equal( scope: &mut Scope, this: <Self as CubeType>::ExpandType, other: <Self as CubeType>::ExpandType, ) -> <Line<bool> as CubeType>::ExpandType
Source§impl<P: CubePrimitive> Line<P>
impl<P: CubePrimitive> Line<P>
Sourcepub fn not_equal(self, other: Self) -> Line<bool>
pub fn not_equal(self, other: Self) -> Line<bool>
Return a new line with the element-wise comparison of the first line being not equal to the second line.
pub fn __expand_not_equal( scope: &mut Scope, this: <Self as CubeType>::ExpandType, other: <Self as CubeType>::ExpandType, ) -> <Line<bool> as CubeType>::ExpandType
Source§impl<P: CubePrimitive> Line<P>
impl<P: CubePrimitive> Line<P>
Sourcepub fn less_than(self, other: Self) -> Line<bool>
pub fn less_than(self, other: Self) -> Line<bool>
Return a new line with the element-wise comparison of the first line being less than the second line.
pub fn __expand_less_than( scope: &mut Scope, this: <Self as CubeType>::ExpandType, other: <Self as CubeType>::ExpandType, ) -> <Line<bool> as CubeType>::ExpandType
Source§impl<P: CubePrimitive> Line<P>
impl<P: CubePrimitive> Line<P>
Sourcepub fn greater_than(self, other: Self) -> Line<bool>
pub fn greater_than(self, other: Self) -> Line<bool>
Return a new line with the element-wise comparison of the first line being greater than the second line.
pub fn __expand_greater_than( scope: &mut Scope, this: <Self as CubeType>::ExpandType, other: <Self as CubeType>::ExpandType, ) -> <Line<bool> as CubeType>::ExpandType
Source§impl<P: CubePrimitive> Line<P>
impl<P: CubePrimitive> Line<P>
Sourcepub fn less_equal(self, other: Self) -> Line<bool>
pub fn less_equal(self, other: Self) -> Line<bool>
Return a new line with the element-wise comparison of the first line being less than or equal to the second line.
pub fn __expand_less_equal( scope: &mut Scope, this: <Self as CubeType>::ExpandType, other: <Self as CubeType>::ExpandType, ) -> <Line<bool> as CubeType>::ExpandType
Source§impl<P: CubePrimitive> Line<P>
impl<P: CubePrimitive> Line<P>
Sourcepub fn greater_equal(self, other: Self) -> Line<bool>
pub fn greater_equal(self, other: Self) -> Line<bool>
Return a new line with the element-wise comparison of the first line being greater than or equal to the second line.
pub fn __expand_greater_equal( scope: &mut Scope, this: <Self as CubeType>::ExpandType, other: <Self as CubeType>::ExpandType, ) -> <Line<bool> as CubeType>::ExpandType
Source§impl Line<bool>
impl Line<bool>
Sourcepub fn and(self, other: Self) -> Line<bool>
pub fn and(self, other: Self) -> Line<bool>
Return a new line with the element-wise and of the lines
pub fn __expand_and( scope: &mut Scope, this: <Self as CubeType>::ExpandType, other: <Self as CubeType>::ExpandType, ) -> <Line<bool> as CubeType>::ExpandType
Source§impl Line<bool>
impl Line<bool>
Sourcepub fn or(self, other: Self) -> Line<bool>
pub fn or(self, other: Self) -> Line<bool>
Return a new line with the element-wise and of the lines
pub fn __expand_or( scope: &mut Scope, this: <Self as CubeType>::ExpandType, other: <Self as CubeType>::ExpandType, ) -> <Line<bool> as CubeType>::ExpandType
Source§impl<P: CountOnes + CubePrimitive> Line<P>
impl<P: CountOnes + CubePrimitive> Line<P>
pub fn count_ones(self) -> Line<u32>
pub fn __expand_count_ones( scope: &mut Scope, this: <Self as CubeType>::ExpandType, ) -> <Line<u32> as CubeType>::ExpandType
Source§impl<P: LeadingZeros + CubePrimitive> Line<P>
impl<P: LeadingZeros + CubePrimitive> Line<P>
pub fn leading_zeros(self) -> Line<u32>
pub fn __expand_leading_zeros( scope: &mut Scope, this: <Self as CubeType>::ExpandType, ) -> <Line<u32> as CubeType>::ExpandType
Source§impl<P: FindFirstSet + CubePrimitive> Line<P>
impl<P: FindFirstSet + CubePrimitive> Line<P>
pub fn find_first_set(self) -> Line<u32>
pub fn __expand_find_first_set( scope: &mut Scope, this: <Self as CubeType>::ExpandType, ) -> <Line<u32> as CubeType>::ExpandType
Trait Implementations§
Source§impl<P: CubePrimitive + Abs> Abs for Line<P>
impl<P: CubePrimitive + Abs> Abs for Line<P>
fn abs(self) -> Self
fn __expand_abs( scope: &mut Scope, x: ExpandElementTyped<Self>, ) -> ExpandElementTyped<Self>
Source§impl<P> AddAssign for Line<P>where
P: CubePrimitive + AddAssign,
impl<P> AddAssign for Line<P>where
P: CubePrimitive + AddAssign,
Source§fn add_assign(&mut self, rhs: Self)
fn add_assign(&mut self, rhs: Self)
+= operation. Read moreSource§impl<P: CubePrimitive + ArcCos> ArcCos for Line<P>
impl<P: CubePrimitive + ArcCos> ArcCos for Line<P>
fn acos(self) -> Self
fn __expand_acos( scope: &mut Scope, x: ExpandElementTyped<Self>, ) -> ExpandElementTyped<Self>
Source§impl<P: CubePrimitive + ArcCosh> ArcCosh for Line<P>
impl<P: CubePrimitive + ArcCosh> ArcCosh for Line<P>
fn acosh(self) -> Self
fn __expand_acosh( scope: &mut Scope, x: ExpandElementTyped<Self>, ) -> ExpandElementTyped<Self>
Source§impl<P: CubePrimitive + ArcSin> ArcSin for Line<P>
impl<P: CubePrimitive + ArcSin> ArcSin for Line<P>
fn asin(self) -> Self
fn __expand_asin( scope: &mut Scope, x: ExpandElementTyped<Self>, ) -> ExpandElementTyped<Self>
Source§impl<P: CubePrimitive + ArcSinh> ArcSinh for Line<P>
impl<P: CubePrimitive + ArcSinh> ArcSinh for Line<P>
fn asinh(self) -> Self
fn __expand_asinh( scope: &mut Scope, x: ExpandElementTyped<Self>, ) -> ExpandElementTyped<Self>
Source§impl<P: CubePrimitive + ArcTan> ArcTan for Line<P>
impl<P: CubePrimitive + ArcTan> ArcTan for Line<P>
fn atan(self) -> Self
fn __expand_atan( scope: &mut Scope, x: ExpandElementTyped<Self>, ) -> ExpandElementTyped<Self>
Source§impl<P: CubePrimitive + ArcTan2> ArcTan2 for Line<P>
impl<P: CubePrimitive + ArcTan2> ArcTan2 for Line<P>
fn atan2(self, _rhs: Self) -> Self
fn __expand_atan2( scope: &mut Scope, lhs: ExpandElementTyped<Self>, rhs: ExpandElementTyped<Self>, ) -> ExpandElementTyped<Self>
Source§impl<P: CubePrimitive + ArcTanh> ArcTanh for Line<P>
impl<P: CubePrimitive + ArcTanh> ArcTanh for Line<P>
fn atanh(self) -> Self
fn __expand_atanh( scope: &mut Scope, x: ExpandElementTyped<Self>, ) -> ExpandElementTyped<Self>
Source§impl<P> BitAndAssign for Line<P>where
P: CubePrimitive + BitAndAssign,
impl<P> BitAndAssign for Line<P>where
P: CubePrimitive + BitAndAssign,
Source§fn bitand_assign(&mut self, rhs: Self)
fn bitand_assign(&mut self, rhs: Self)
&= operation. Read moreSource§impl<P> BitOrAssign for Line<P>where
P: CubePrimitive + BitOrAssign,
impl<P> BitOrAssign for Line<P>where
P: CubePrimitive + BitOrAssign,
Source§fn bitor_assign(&mut self, rhs: Self)
fn bitor_assign(&mut self, rhs: Self)
|= operation. Read moreSource§impl<P> BitXorAssign for Line<P>where
P: CubePrimitive + BitXorAssign,
impl<P> BitXorAssign for Line<P>where
P: CubePrimitive + BitXorAssign,
Source§fn bitxor_assign(&mut self, rhs: Self)
fn bitxor_assign(&mut self, rhs: Self)
^= operation. Read moreSource§impl<P: CubePrimitive + Ceil> Ceil for Line<P>
impl<P: CubePrimitive + Ceil> Ceil for Line<P>
fn ceil(self) -> Self
fn __expand_ceil( scope: &mut Scope, x: ExpandElementTyped<Self>, ) -> ExpandElementTyped<Self>
Source§impl<P: CubePrimitive> Clone for Line<P>
impl<P: CubePrimitive> Clone for Line<P>
Source§impl<P: CubePrimitive + Cos> Cos for Line<P>
impl<P: CubePrimitive + Cos> Cos for Line<P>
fn cos(self) -> Self
fn __expand_cos( scope: &mut Scope, x: ExpandElementTyped<Self>, ) -> ExpandElementTyped<Self>
Source§impl<P: CubePrimitive + Cosh> Cosh for Line<P>
impl<P: CubePrimitive + Cosh> Cosh for Line<P>
fn cosh(self) -> Self
fn __expand_cosh( scope: &mut Scope, x: ExpandElementTyped<Self>, ) -> ExpandElementTyped<Self>
Source§impl<E: CubePrimitive> CubeIndex for Line<E>
impl<E: CubePrimitive> CubeIndex for Line<E>
type Output = E
type Idx = usize
fn cube_idx(&self, _i: Self::Idx) -> &Self::Output
fn expand_index( scope: &mut Scope, array: Self::ExpandType, index: <Self::Idx as CubeType>::ExpandType, ) -> <Self::Output as CubeType>::ExpandType
fn expand_index_unchecked( scope: &mut Scope, array: Self::ExpandType, index: <Self::Idx as CubeType>::ExpandType, ) -> <Self::Output as CubeType>::ExpandType
Source§impl<E: CubePrimitive> CubeIndexMut for Line<E>
impl<E: CubePrimitive> CubeIndexMut for Line<E>
fn cube_idx_mut( &mut self, _i: <Self as CubeIndex>::Idx, ) -> &mut <Self as CubeIndex>::Output
fn expand_index_mut( scope: &mut Scope, array: Self::ExpandType, index: <Self::Idx as CubeType>::ExpandType, value: <Self::Output as CubeType>::ExpandType, )
Source§impl<P: CubePrimitive + CubeNot> CubeNot for Line<P>
impl<P: CubePrimitive + CubeNot> CubeNot for Line<P>
fn __expand_not( scope: &mut Scope, x: ExpandElementTyped<Self>, ) -> ExpandElementTyped<Self>
Source§impl<P: CubePrimitive> CubePrimitive for Line<P>
impl<P: CubePrimitive> CubePrimitive for Line<P>
Source§fn as_type(scope: &Scope) -> StorageType
fn as_type(scope: &Scope) -> StorageType
Source§fn as_type_native() -> Option<StorageType>
fn as_type_native() -> Option<StorageType>
fn from_const_value(value: ConstantValue) -> Self
Source§fn as_type_native_unchecked() -> StorageType
fn as_type_native_unchecked() -> StorageType
Source§fn size_bits_unchecked() -> usize
fn size_bits_unchecked() -> usize
fn from_expand_elem(elem: ExpandElement) -> Self::ExpandType
fn into_lit_unchecked(self) -> Self
fn supported_uses<R: Runtime>(client: &ComputeClient<R>) -> EnumSet<TypeUsage>
fn type_size() -> usize
fn type_size_bits() -> usize
fn packing_factor() -> usize
fn __expand_type_size(scope: &Scope) -> usize
fn __expand_type_size_bits(scope: &Scope) -> usize
fn __expand_packing_factor(scope: &Scope) -> usize
Source§impl<P: CubePrimitive> CubeType for &Line<P>
impl<P: CubePrimitive> CubeType for &Line<P>
type ExpandType = ExpandElementTyped<Line<P>>
Source§fn into_mut(scope: &mut Scope, expand: Self::ExpandType) -> Self::ExpandType
fn into_mut(scope: &mut Scope, expand: Self::ExpandType) -> Self::ExpandType
Source§impl<P: CubePrimitive> CubeType for &mut Line<P>
impl<P: CubePrimitive> CubeType for &mut Line<P>
type ExpandType = ExpandElementTyped<Line<P>>
Source§fn into_mut(scope: &mut Scope, expand: Self::ExpandType) -> Self::ExpandType
fn into_mut(scope: &mut Scope, expand: Self::ExpandType) -> Self::ExpandType
Source§impl<P: CubePrimitive> CubeType for Line<P>
impl<P: CubePrimitive> CubeType for Line<P>
type ExpandType = ExpandElementTyped<Line<P>>
Source§fn into_mut(scope: &mut Scope, expand: Self::ExpandType) -> Self::ExpandType
fn into_mut(scope: &mut Scope, expand: Self::ExpandType) -> Self::ExpandType
Source§impl<P> DivAssign for Line<P>where
P: CubePrimitive + DivAssign,
impl<P> DivAssign for Line<P>where
P: CubePrimitive + DivAssign,
Source§fn div_assign(&mut self, rhs: Self)
fn div_assign(&mut self, rhs: Self)
/= operation. Read moreSource§impl<N: Dot + CubePrimitive> Dot for Line<N>
impl<N: Dot + CubePrimitive> Dot for Line<N>
fn dot(self, _rhs: Self) -> Self
fn __expand_dot( scope: &mut Scope, lhs: ExpandElementTyped<Self>, rhs: ExpandElementTyped<Self>, ) -> ExpandElementTyped<Self>
Source§impl<P: CubePrimitive + Erf> Erf for Line<P>
impl<P: CubePrimitive + Erf> Erf for Line<P>
fn erf(self) -> Self
fn __expand_erf( scope: &mut Scope, x: ExpandElementTyped<Self>, ) -> ExpandElementTyped<Self>
Source§impl<P: CubePrimitive + Exp> Exp for Line<P>
impl<P: CubePrimitive + Exp> Exp for Line<P>
fn exp(self) -> Self
fn __expand_exp( scope: &mut Scope, x: ExpandElementTyped<Self>, ) -> ExpandElementTyped<Self>
Source§impl<P: CubePrimitive> ExpandElementIntoMut for Line<P>
impl<P: CubePrimitive> ExpandElementIntoMut for Line<P>
fn elem_into_mut(scope: &mut Scope, elem: ExpandElement) -> ExpandElement
Source§impl<N: FloatOps + CubePrimitive> FloatOps for Line<N>
impl<N: FloatOps + CubePrimitive> FloatOps for Line<N>
fn min(self, other: Self) -> Self
fn max(self, other: Self) -> Self
fn clamp(self, min: Self, max: Self) -> Self
fn __expand_min( scope: &mut Scope, this: <Self as CubeType>::ExpandType, other: <Self as CubeType>::ExpandType, ) -> <Self as CubeType>::ExpandType
fn __expand_max( scope: &mut Scope, this: <Self as CubeType>::ExpandType, other: <Self as CubeType>::ExpandType, ) -> <Self as CubeType>::ExpandType
fn __expand_clamp( scope: &mut Scope, this: <Self as CubeType>::ExpandType, min: <Self as CubeType>::ExpandType, max: <Self as CubeType>::ExpandType, ) -> <Self as CubeType>::ExpandType
Source§impl<P: CubePrimitive + Floor> Floor for Line<P>
impl<P: CubePrimitive + Floor> Floor for Line<P>
fn floor(self) -> Self
fn __expand_floor( scope: &mut Scope, x: ExpandElementTyped<Self>, ) -> ExpandElementTyped<Self>
Source§impl<P: CubePrimitive + Into<ExpandElementTyped<P>>> Into<ExpandElementTyped<Line<P>>> for Line<P>
impl<P: CubePrimitive + Into<ExpandElementTyped<P>>> Into<ExpandElementTyped<Line<P>>> for Line<P>
Source§fn into(self) -> ExpandElementTyped<Self>
fn into(self) -> ExpandElementTyped<Self>
Source§impl<P: CubePrimitive + InverseSqrt> InverseSqrt for Line<P>
impl<P: CubePrimitive + InverseSqrt> InverseSqrt for Line<P>
fn inverse_sqrt(self) -> Self
fn __expand_inverse_sqrt( scope: &mut Scope, x: ExpandElementTyped<Self>, ) -> ExpandElementTyped<Self>
Source§impl<P: CubePrimitive + IsInf> IsInf for Line<P>
impl<P: CubePrimitive + IsInf> IsInf for Line<P>
fn is_inf(self) -> bool
fn __expand_is_inf( scope: &mut Scope, x: ExpandElementTyped<Self>, ) -> ExpandElementTyped<bool>
Source§impl<P: CubePrimitive + IsNan> IsNan for Line<P>
impl<P: CubePrimitive + IsNan> IsNan for Line<P>
fn is_nan(self) -> bool
fn __expand_is_nan( scope: &mut Scope, x: ExpandElementTyped<Self>, ) -> ExpandElementTyped<bool>
Source§impl<P: CubePrimitive + Log> Log for Line<P>
impl<P: CubePrimitive + Log> Log for Line<P>
fn ln(self) -> Self
fn __expand_ln( scope: &mut Scope, x: ExpandElementTyped<Self>, ) -> ExpandElementTyped<Self>
Source§impl<P: CubePrimitive + Log1p> Log1p for Line<P>
impl<P: CubePrimitive + Log1p> Log1p for Line<P>
fn log1p(self) -> Self
fn __expand_log1p( scope: &mut Scope, x: ExpandElementTyped<Self>, ) -> ExpandElementTyped<Self>
Source§impl<P> MulAssign for Line<P>where
P: CubePrimitive + MulAssign,
impl<P> MulAssign for Line<P>where
P: CubePrimitive + MulAssign,
Source§fn mul_assign(&mut self, rhs: Self)
fn mul_assign(&mut self, rhs: Self)
*= operation. Read moreSource§impl<N: MulHi + CubePrimitive> MulHi for Line<N>
impl<N: MulHi + CubePrimitive> MulHi for Line<N>
fn mul_hi(self, _rhs: Self) -> Self
fn __expand_mul_hi( scope: &mut Scope, lhs: ExpandElementTyped<Self>, rhs: ExpandElementTyped<Self>, ) -> ExpandElementTyped<Self>
Source§impl<P: CubePrimitive + Ord> Ord for Line<P>
impl<P: CubePrimitive + Ord> Ord for Line<P>
Source§impl<P> PartialOrd for Line<P>where
P: CubePrimitive + PartialOrd,
impl<P> PartialOrd for Line<P>where
P: CubePrimitive + PartialOrd,
Source§impl<P: CubePrimitive + Powf> Powf for Line<P>
impl<P: CubePrimitive + Powf> Powf for Line<P>
fn powf(self, _rhs: Self) -> Self
fn __expand_powf( scope: &mut Scope, lhs: ExpandElementTyped<Self>, rhs: ExpandElementTyped<Self>, ) -> ExpandElementTyped<Self>
Source§impl<P: CubePrimitive + Powi<I>, I: CubePrimitive> Powi<Line<I>> for Line<P>
impl<P: CubePrimitive + Powi<I>, I: CubePrimitive> Powi<Line<I>> for Line<P>
fn powi(self, _rhs: Rhs) -> Self
fn __expand_powi( scope: &mut Scope, lhs: ExpandElementTyped<Self>, rhs: ExpandElementTyped<Rhs>, ) -> ExpandElementTyped<Self>
Source§impl<P: CubePrimitive + Recip> Recip for Line<P>
impl<P: CubePrimitive + Recip> Recip for Line<P>
fn recip(self) -> Self
fn __expand_recip( scope: &mut Scope, x: ExpandElementTyped<Self>, ) -> ExpandElementTyped<Self>
Source§impl<P: CubePrimitive + Remainder> Remainder for Line<P>
impl<P: CubePrimitive + Remainder> Remainder for Line<P>
fn rem(self, _rhs: Self) -> Self
fn __expand_rem( scope: &mut Scope, lhs: ExpandElementTyped<Self>, rhs: ExpandElementTyped<Self>, ) -> ExpandElementTyped<Self>
Source§impl<P: CubePrimitive + ReverseBits> ReverseBits for Line<P>
impl<P: CubePrimitive + ReverseBits> ReverseBits for Line<P>
fn reverse_bits(self) -> Self
fn __expand_reverse_bits( scope: &mut Scope, x: ExpandElementTyped<Self>, ) -> ExpandElementTyped<Self>
Source§impl<P: CubePrimitive + Round> Round for Line<P>
impl<P: CubePrimitive + Round> Round for Line<P>
fn round(self) -> Self
fn __expand_round( scope: &mut Scope, x: ExpandElementTyped<Self>, ) -> ExpandElementTyped<Self>
Source§impl<P: CubePrimitive + SaturatingAdd> SaturatingAdd for Line<P>
impl<P: CubePrimitive + SaturatingAdd> SaturatingAdd for Line<P>
fn saturating_add(self, _rhs: Self) -> Self
fn __expand_saturating_add( scope: &mut Scope, lhs: ExpandElementTyped<Self>, rhs: ExpandElementTyped<Self>, ) -> ExpandElementTyped<Self>
Source§impl<P: CubePrimitive + SaturatingSub> SaturatingSub for Line<P>
impl<P: CubePrimitive + SaturatingSub> SaturatingSub for Line<P>
fn saturating_sub(self, _rhs: Self) -> Self
fn __expand_saturating_sub( scope: &mut Scope, lhs: ExpandElementTyped<Self>, rhs: ExpandElementTyped<Self>, ) -> ExpandElementTyped<Self>
Source§impl<P> ShlAssign for Line<P>where
P: CubePrimitive + ShlAssign,
impl<P> ShlAssign for Line<P>where
P: CubePrimitive + ShlAssign,
Source§fn shl_assign(&mut self, rhs: Self)
fn shl_assign(&mut self, rhs: Self)
<<= operation. Read moreSource§impl<P> ShrAssign for Line<P>where
P: CubePrimitive + ShrAssign,
impl<P> ShrAssign for Line<P>where
P: CubePrimitive + ShrAssign,
Source§fn shr_assign(&mut self, rhs: Self)
fn shr_assign(&mut self, rhs: Self)
>>= operation. Read moreSource§impl<P: CubePrimitive + Sin> Sin for Line<P>
impl<P: CubePrimitive + Sin> Sin for Line<P>
fn sin(self) -> Self
fn __expand_sin( scope: &mut Scope, x: ExpandElementTyped<Self>, ) -> ExpandElementTyped<Self>
Source§impl<P: CubePrimitive + Sinh> Sinh for Line<P>
impl<P: CubePrimitive + Sinh> Sinh for Line<P>
fn sinh(self) -> Self
fn __expand_sinh( scope: &mut Scope, x: ExpandElementTyped<Self>, ) -> ExpandElementTyped<Self>
Source§impl<P: CubePrimitive + Sqrt> Sqrt for Line<P>
impl<P: CubePrimitive + Sqrt> Sqrt for Line<P>
fn sqrt(self) -> Self
fn __expand_sqrt( scope: &mut Scope, x: ExpandElementTyped<Self>, ) -> ExpandElementTyped<Self>
Source§impl<P> SubAssign for Line<P>where
P: CubePrimitive + SubAssign,
impl<P> SubAssign for Line<P>where
P: CubePrimitive + SubAssign,
Source§fn sub_assign(&mut self, rhs: Self)
fn sub_assign(&mut self, rhs: Self)
-= operation. Read moreSource§impl<P: CubePrimitive + Tan> Tan for Line<P>
impl<P: CubePrimitive + Tan> Tan for Line<P>
fn tan(self) -> Self
fn __expand_tan( scope: &mut Scope, x: ExpandElementTyped<Self>, ) -> ExpandElementTyped<Self>
Source§impl<P: CubePrimitive + Tanh> Tanh for Line<P>
impl<P: CubePrimitive + Tanh> Tanh for Line<P>
fn tanh(self) -> Self
fn __expand_tanh( scope: &mut Scope, x: ExpandElementTyped<Self>, ) -> ExpandElementTyped<Self>
Source§impl<P: CubePrimitive + NumCast> ToPrimitive for Line<P>
impl<P: CubePrimitive + NumCast> ToPrimitive for Line<P>
Source§fn to_i64(&self) -> Option<i64>
fn to_i64(&self) -> Option<i64>
self to an i64. If the value cannot be
represented by an i64, then None is returned.Source§fn to_u64(&self) -> Option<u64>
fn to_u64(&self) -> Option<u64>
self to a u64. If the value cannot be
represented by a u64, then None is returned.Source§fn to_isize(&self) -> Option<isize>
fn to_isize(&self) -> Option<isize>
self to an isize. If the value cannot be
represented by an isize, then None is returned.Source§fn to_i8(&self) -> Option<i8>
fn to_i8(&self) -> Option<i8>
self to an i8. If the value cannot be
represented by an i8, then None is returned.Source§fn to_i16(&self) -> Option<i16>
fn to_i16(&self) -> Option<i16>
self to an i16. If the value cannot be
represented by an i16, then None is returned.Source§fn to_i32(&self) -> Option<i32>
fn to_i32(&self) -> Option<i32>
self to an i32. If the value cannot be
represented by an i32, then None is returned.Source§fn to_i128(&self) -> Option<i128>
fn to_i128(&self) -> Option<i128>
self to an i128. If the value cannot be
represented by an i128 (i64 under the default implementation), then
None is returned. Read moreSource§fn to_usize(&self) -> Option<usize>
fn to_usize(&self) -> Option<usize>
self to a usize. If the value cannot be
represented by a usize, then None is returned.Source§fn to_u8(&self) -> Option<u8>
fn to_u8(&self) -> Option<u8>
self to a u8. If the value cannot be
represented by a u8, then None is returned.Source§fn to_u16(&self) -> Option<u16>
fn to_u16(&self) -> Option<u16>
self to a u16. If the value cannot be
represented by a u16, then None is returned.Source§fn to_u32(&self) -> Option<u32>
fn to_u32(&self) -> Option<u32>
self to a u32. If the value cannot be
represented by a u32, then None is returned.Source§fn to_u128(&self) -> Option<u128>
fn to_u128(&self) -> Option<u128>
self to a u128. If the value cannot be
represented by a u128 (u64 under the default implementation), then
None is returned. Read moreSource§impl<P: CubePrimitive + Trunc> Trunc for Line<P>
impl<P: CubePrimitive + Trunc> Trunc for Line<P>
fn trunc(self) -> Self
fn __expand_trunc( scope: &mut Scope, x: ExpandElementTyped<Self>, ) -> ExpandElementTyped<Self>
impl<P: CubePrimitive> Copy for Line<P>
impl<P: CubePrimitive> Eq for Line<P>
Auto Trait Implementations§
impl<P> Freeze for Line<P>where
P: Freeze,
impl<P> RefUnwindSafe for Line<P>where
P: RefUnwindSafe,
impl<P> Send for Line<P>where
P: Send,
impl<P> Sync for Line<P>where
P: Sync,
impl<P> Unpin for Line<P>where
P: Unpin,
impl<P> UnwindSafe for Line<P>where
P: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<P> Cast for Pwhere
P: CubePrimitive,
impl<P> Cast for Pwhere
P: CubePrimitive,
fn cast_from<From>(_value: From) -> Pwhere
From: CubePrimitive,
fn __expand_cast_from<From: CubePrimitive>( scope: &mut Scope, value: ExpandElementTyped<From>, ) -> <Self as CubeType>::ExpandType
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<T> CubeAdd for Twhere
T: Add<Output = T> + CubePrimitive,
impl<T> CubeAdd for Twhere
T: Add<Output = T> + CubePrimitive,
fn __expand_add( scope: &mut Scope, lhs: ExpandElementTyped<Self>, rhs: ExpandElementTyped<Self>, ) -> ExpandElementTyped<Self>
Source§impl<T> CubeAddAssign for Twhere
T: AddAssign + CubePrimitive,
impl<T> CubeAddAssign for Twhere
T: AddAssign + CubePrimitive,
fn __expand_add_assign( scope: &mut Scope, lhs: ExpandElementTyped<Self>, rhs: ExpandElementTyped<Self>, )
Source§impl<P> CubeDebug for Pwhere
P: CubePrimitive,
impl<P> CubeDebug for Pwhere
P: CubePrimitive,
Source§fn set_debug_name(&self, scope: &mut Scope, name: &'static str)
fn set_debug_name(&self, scope: &mut Scope, name: &'static str)
Source§impl<T> CubeDiv for Twhere
T: Div<Output = T> + CubePrimitive,
impl<T> CubeDiv for Twhere
T: Div<Output = T> + CubePrimitive,
fn __expand_mul( scope: &mut Scope, lhs: ExpandElementTyped<Self>, rhs: ExpandElementTyped<Self>, ) -> ExpandElementTyped<Self>
Source§impl<T> CubeDivAssign for Twhere
T: DivAssign + CubePrimitive,
impl<T> CubeDivAssign for Twhere
T: DivAssign + CubePrimitive,
fn __expand_div_assign( scope: &mut Scope, lhs: ExpandElementTyped<Self>, rhs: ExpandElementTyped<Self>, )
Source§impl<T> CubeMul for Twhere
T: Mul<Output = T> + CubePrimitive,
impl<T> CubeMul for Twhere
T: Mul<Output = T> + CubePrimitive,
fn __expand_mul( scope: &mut Scope, lhs: ExpandElementTyped<Self>, rhs: ExpandElementTyped<Self>, ) -> ExpandElementTyped<Self>
Source§impl<T> CubeMulAssign for Twhere
T: MulAssign + CubePrimitive,
impl<T> CubeMulAssign for Twhere
T: MulAssign + CubePrimitive,
fn __expand_mul_assign( scope: &mut Scope, lhs: ExpandElementTyped<Self>, rhs: ExpandElementTyped<Self>, )
Source§impl<T> CubeOrd for Twhere
T: Ord + CubePrimitive,
impl<T> CubeOrd for Twhere
T: Ord + CubePrimitive,
fn __expand_min( scope: &mut Scope, lhs: Self::ExpandType, rhs: Self::ExpandType, ) -> Self::ExpandType
fn __expand_max( scope: &mut Scope, lhs: Self::ExpandType, rhs: Self::ExpandType, ) -> Self::ExpandType
fn __expand_clamp( scope: &mut Scope, lhs: Self::ExpandType, min: Self::ExpandType, max: Self::ExpandType, ) -> Self::ExpandType
Source§impl<T> CubeSub for Twhere
T: Sub<Output = T> + CubePrimitive,
impl<T> CubeSub for Twhere
T: Sub<Output = T> + CubePrimitive,
fn __expand_sub( scope: &mut Scope, lhs: ExpandElementTyped<Self>, rhs: ExpandElementTyped<Self>, ) -> ExpandElementTyped<Self>
Source§impl<T> CubeSubAssign for Twhere
T: SubAssign + CubePrimitive,
impl<T> CubeSubAssign for Twhere
T: SubAssign + CubePrimitive,
fn __expand_sub_assign( scope: &mut Scope, lhs: ExpandElementTyped<Self>, rhs: ExpandElementTyped<Self>, )
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.