pub struct PointCollection {
pub length: usize,
pub data: PointCollectionData,
}
Expand description
An unrolled point collection with size information.
Fields§
§length: usize
How many points this point collection has
data: PointCollectionData
The 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<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<Derived>> for PointCollection
impl ConvertFrom<Expr<Derived>> for PointCollection
Source§fn convert_from(value: Expr<Derived>, context: &CompileContext) -> Expr<Self>
fn convert_from(value: Expr<Derived>, 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<Number>> for PointCollection
impl ConvertFrom<Expr<Number>> for PointCollection
Source§fn convert_from(value: Expr<Number>, context: &CompileContext) -> Expr<Self>
fn convert_from(value: Expr<Number>, 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<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