Struct lyon_path::commands::CommandsPathSlice
source · [−]pub struct CommandsPathSlice<'l, Endpoint, ControlPoint> { /* private fields */ }
Expand description
A view on a PathCommands
buffer and
two slices for endpoints and control points, providing similar
functionalities as PathSlice
.
Implementations
sourceimpl<'l, Endpoint, ControlPoint> CommandsPathSlice<'l, Endpoint, ControlPoint>
impl<'l, Endpoint, ControlPoint> CommandsPathSlice<'l, Endpoint, ControlPoint>
sourcepub fn iter(&self) -> Iter<'_>ⓘNotable traits for Iter<'l>impl<'l> Iterator for Iter<'l> type Item = IdEvent;
pub fn iter(&self) -> Iter<'_>ⓘNotable traits for Iter<'l>impl<'l> Iterator for Iter<'l> type Item = IdEvent;
Returns an iterator over the events of the path using IDs.
sourcepub fn events(&self) -> Events<'_, Endpoint, ControlPoint>ⓘNotable traits for Events<'l, Endpoint, ControlPoint>impl<'l, Endpoint, ControlPoint> Iterator for Events<'l, Endpoint, ControlPoint> type Item = Event<&'l Endpoint, &'l ControlPoint>;
pub fn events(&self) -> Events<'_, Endpoint, ControlPoint>ⓘNotable traits for Events<'l, Endpoint, ControlPoint>impl<'l, Endpoint, ControlPoint> Iterator for Events<'l, Endpoint, ControlPoint> type Item = Event<&'l Endpoint, &'l ControlPoint>;
Returns an iterator over the events of the path using endpoint and control point references.
Trait Implementations
sourceimpl<'l, Endpoint: Clone, ControlPoint: Clone> Clone for CommandsPathSlice<'l, Endpoint, ControlPoint>
impl<'l, Endpoint: Clone, ControlPoint: Clone> Clone for CommandsPathSlice<'l, Endpoint, ControlPoint>
sourcefn clone(&self) -> CommandsPathSlice<'l, Endpoint, ControlPoint>
fn clone(&self) -> CommandsPathSlice<'l, Endpoint, ControlPoint>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl<'l, Endpoint, ControlPoint> Debug for CommandsPathSlice<'l, Endpoint, ControlPoint> where
Endpoint: Debug,
ControlPoint: Debug,
impl<'l, Endpoint, ControlPoint> Debug for CommandsPathSlice<'l, Endpoint, ControlPoint> where
Endpoint: Debug,
ControlPoint: Debug,
sourceimpl<'l, Endpoint, ControlPoint> Index<ControlPointId> for CommandsPathSlice<'l, Endpoint, ControlPoint>
impl<'l, Endpoint, ControlPoint> Index<ControlPointId> for CommandsPathSlice<'l, Endpoint, ControlPoint>
sourceimpl<'l, Endpoint, ControlPoint> Index<EndpointId> for CommandsPathSlice<'l, Endpoint, ControlPoint>
impl<'l, Endpoint, ControlPoint> Index<EndpointId> for CommandsPathSlice<'l, Endpoint, ControlPoint>
sourceimpl<'l, Endpoint, ControlPoint> PositionStore for CommandsPathSlice<'l, Endpoint, ControlPoint> where
Endpoint: Position,
ControlPoint: Position,
impl<'l, Endpoint, ControlPoint> PositionStore for CommandsPathSlice<'l, Endpoint, ControlPoint> where
Endpoint: Position,
ControlPoint: Position,
fn get_endpoint(&self, id: EndpointId) -> Point
fn get_control_point(&self, id: ControlPointId) -> Point
impl<'l, Endpoint: Copy, ControlPoint: Copy> Copy for CommandsPathSlice<'l, Endpoint, ControlPoint>
Auto Trait Implementations
impl<'l, Endpoint, ControlPoint> RefUnwindSafe for CommandsPathSlice<'l, Endpoint, ControlPoint> where
ControlPoint: RefUnwindSafe,
Endpoint: RefUnwindSafe,
impl<'l, Endpoint, ControlPoint> Send for CommandsPathSlice<'l, Endpoint, ControlPoint> where
ControlPoint: Sync,
Endpoint: Sync,
impl<'l, Endpoint, ControlPoint> Sync for CommandsPathSlice<'l, Endpoint, ControlPoint> where
ControlPoint: Sync,
Endpoint: Sync,
impl<'l, Endpoint, ControlPoint> Unpin for CommandsPathSlice<'l, Endpoint, ControlPoint>
impl<'l, Endpoint, ControlPoint> UnwindSafe for CommandsPathSlice<'l, Endpoint, ControlPoint> where
ControlPoint: RefUnwindSafe,
Endpoint: RefUnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more