pub(super) struct UnscaledOutlineRef<'a> {
pub points: &'a [UnscaledPoint],
}
Fields§
§points: &'a [UnscaledPoint]
Implementations§
Source§impl UnscaledOutlineRef<'_>
impl UnscaledOutlineRef<'_>
Sourcepub fn find_last_contour(
&self,
f: impl FnMut(&UnscaledPoint) -> bool,
) -> Option<(Range<usize>, usize)>
pub fn find_last_contour( &self, f: impl FnMut(&UnscaledPoint) -> bool, ) -> Option<(Range<usize>, usize)>
Returns the range of contour points and the index of the point within
that contour for the last point where f
returns true.
This is common code used for finding extrema when materializing blue zones.
Trait Implementations§
Source§impl<'a> Clone for UnscaledOutlineRef<'a>
impl<'a> Clone for UnscaledOutlineRef<'a>
Source§fn clone(&self) -> UnscaledOutlineRef<'a>
fn clone(&self) -> UnscaledOutlineRef<'a>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<'a> Debug for UnscaledOutlineRef<'a>
impl<'a> Debug for UnscaledOutlineRef<'a>
impl<'a> Copy for UnscaledOutlineRef<'a>
Auto Trait Implementations§
impl<'a> Freeze for UnscaledOutlineRef<'a>
impl<'a> RefUnwindSafe for UnscaledOutlineRef<'a>
impl<'a> Send for UnscaledOutlineRef<'a>
impl<'a> Sync for UnscaledOutlineRef<'a>
impl<'a> Unpin for UnscaledOutlineRef<'a>
impl<'a> UnwindSafe for UnscaledOutlineRef<'a>
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