pub struct PointCollection {
pub length: usize,
pub data: PointCollectionData,
}Expand description
An unrolled point collection with size information.
Fields§
§length: usizeHow many points this point collection has
data: PointCollectionDataThe defining data.
Implementations§
Trait Implementations§
source§impl CloneWithNode for PointCollection
impl CloneWithNode for PointCollection
source§fn clone_with_node(&mut self) -> Self
fn clone_with_node(&mut self) -> Self
Clone
self and take its node.source§fn clone_without_node(&self) -> Self
fn clone_without_node(&self) -> Self
Clone
self without taking its node.source§impl ConvertFrom<AnyExpr> for PointCollection
impl ConvertFrom<AnyExpr> for PointCollection
source§fn convert_from(value: AnyExpr, context: &CompileContext) -> Expr<Self>
fn convert_from(value: AnyExpr, context: &CompileContext) -> Expr<Self>
Convert a value to
Self. Read moresource§fn can_convert_from(value: &AnyExpr) -> bool
fn can_convert_from(value: &AnyExpr) -> bool
Check if conversion from a value to
Self can be made.source§impl ConvertFrom<Expr<Bundle>> for PointCollection
impl ConvertFrom<Expr<Bundle>> for PointCollection
source§fn convert_from(value: Expr<Bundle>, context: &CompileContext) -> Expr<Self>
fn convert_from(value: Expr<Bundle>, context: &CompileContext) -> Expr<Self>
Convert a value to
Self. Read moresource§impl ConvertFrom<Expr<Circle>> for PointCollection
impl ConvertFrom<Expr<Circle>> for PointCollection
source§fn convert_from(value: Expr<Circle>, context: &CompileContext) -> Expr<Self>
fn convert_from(value: Expr<Circle>, context: &CompileContext) -> Expr<Self>
Convert a value to
Self. Read moresource§impl ConvertFrom<Expr<Line>> for PointCollection
impl ConvertFrom<Expr<Line>> for PointCollection
source§fn convert_from(value: Expr<Line>, context: &CompileContext) -> Expr<Self>
fn convert_from(value: Expr<Line>, context: &CompileContext) -> Expr<Self>
Convert a value to
Self. Read moresource§impl ConvertFrom<Expr<Point>> for PointCollection
impl ConvertFrom<Expr<Point>> for PointCollection
source§fn convert_from(value: Expr<Point>, _context: &CompileContext) -> Expr<Self>
fn convert_from(value: Expr<Point>, _context: &CompileContext) -> Expr<Self>
Convert a value to
Self. Read moresource§impl ConvertFrom<Expr<PointCollection>> for PointCollection
impl ConvertFrom<Expr<PointCollection>> for PointCollection
source§fn convert_from(
value: Expr<PointCollection>,
context: &CompileContext,
) -> Expr<Self>
fn convert_from( value: Expr<PointCollection>, context: &CompileContext, ) -> Expr<Self>
Convert a value to
Self. Read moresource§fn can_convert_from(_value: &Expr<PointCollection>) -> bool
fn can_convert_from(_value: &Expr<PointCollection>) -> bool
Check if conversion from a value to
Self can be made.source§impl ConvertFrom<Expr<Scalar>> for PointCollection
impl ConvertFrom<Expr<Scalar>> for PointCollection
source§fn convert_from(value: Expr<Scalar>, context: &CompileContext) -> Expr<Self>
fn convert_from(value: Expr<Scalar>, context: &CompileContext) -> Expr<Self>
Convert a value to
Self. Read moresource§impl ConvertFrom<Expr<Unknown>> for PointCollection
impl ConvertFrom<Expr<Unknown>> for PointCollection
source§fn convert_from(value: Expr<Unknown>, _context: &CompileContext) -> Expr<Self>
fn convert_from(value: Expr<Unknown>, _context: &CompileContext) -> Expr<Self>
Convert a value to
Self. Read moresource§impl Debug for PointCollection
impl Debug for PointCollection
source§impl Display for PointCollection
impl Display for PointCollection
source§impl Displayed for PointCollection
impl Displayed for PointCollection
source§impl Dummy for PointCollection
impl Dummy for PointCollection
source§impl GetData for PointCollection
impl GetData for PointCollection
source§impl GetValueType for PointCollection
impl GetValueType for PointCollection
fn get_value_type(&self) -> Type
Auto Trait Implementations§
impl Freeze for PointCollection
impl !RefUnwindSafe for PointCollection
impl !Send for PointCollection
impl !Sync for PointCollection
impl Unpin for PointCollection
impl !UnwindSafe for PointCollection
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
Mutably borrows from an owned value. Read more
source§impl<T> Convert for T
impl<T> Convert for T
source§fn convert<U>(self, context: &CompileContext) -> Expr<U>where
U: ConvertFrom<T>,
fn convert<U>(self, context: &CompileContext) -> Expr<U>where
U: ConvertFrom<T>,
Convert
self into a specific type. Read moresource§fn can_convert<U>(&self) -> boolwhere
U: ConvertFrom<T>,
fn can_convert<U>(&self) -> boolwhere
U: ConvertFrom<T>,
Check if
self can be converted into a specific type. Read more