pub struct Pc<const N: usize>(pub Expr<PointCollection>);
Expand description
Point collection with a specific size
Tuple Fields§
§0: Expr<PointCollection>
Methods from Deref<Target = Expr<PointCollection>>§
Sourcepub fn index_without_node(&self, index: usize) -> Expr<Point>
pub fn index_without_node(&self, index: usize) -> Expr<Point>
Get the point at a given index without taking the collection’s node.
Sourcepub fn index_with_node(&mut self, index: usize) -> Expr<Point>
pub fn index_with_node(&mut self, index: usize) -> Expr<Point>
Get the point at a given index and take the collection’s node.
Sourcepub fn take_node(&mut self) -> Option<HierarchyNode<T::Node>>
pub fn take_node(&mut self) -> Option<HierarchyNode<T::Node>>
Take the expression’s display node.
Trait Implementations§
Source§impl<const N: usize> From<Expr<PointCollection>> for Pc<N>
impl<const N: usize> From<Expr<PointCollection>> for Pc<N>
Source§fn from(value: Expr<PointCollection>) -> Self
fn from(value: Expr<PointCollection>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<const N: usize> Freeze for Pc<N>
impl<const N: usize> !RefUnwindSafe for Pc<N>
impl<const N: usize> !Send for Pc<N>
impl<const N: usize> !Sync for Pc<N>
impl<const N: usize> Unpin for Pc<N>
impl<const N: usize> !UnwindSafe for Pc<N>
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