Struct lyon_path::PathBuffer
source · [−]pub struct PathBuffer { /* private fields */ }
Expand description
An object that stores multiple paths contiguously.
Implementations
sourceimpl PathBuffer
impl PathBuffer
pub fn new() -> Self
pub fn with_capacity(endpoints: usize, ctrl_points: usize, paths: usize) -> Self
pub fn as_slice(&self) -> PathBufferSlice<'_>
pub fn get(&self, index: usize) -> PathSlice<'_>
pub fn indices(&self) -> Range<usize>
pub fn iter(&self) -> Iter<'_>ⓘNotable traits for Iter<'l>impl<'l> Iterator for Iter<'l> type Item = PathSlice<'l>;
pub fn builder(&mut self) -> Builder<'_>
pub fn clear(&mut self)
pub fn reserve(&mut self, endpoints: usize, ctrl_points: usize, paths: usize)
Trait Implementations
sourceimpl Clone for PathBuffer
impl Clone for PathBuffer
sourcefn clone(&self) -> PathBuffer
fn clone(&self) -> PathBuffer
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 Debug for PathBuffer
impl Debug for PathBuffer
sourceimpl Default for PathBuffer
impl Default for PathBuffer
sourcefn default() -> PathBuffer
fn default() -> PathBuffer
Returns the “default value” for a type. Read more
sourceimpl<'l> FromIterator<PathSlice<'l>> for PathBuffer
impl<'l> FromIterator<PathSlice<'l>> for PathBuffer
sourcefn from_iter<T: IntoIterator<Item = PathSlice<'l>>>(iter: T) -> PathBuffer
fn from_iter<T: IntoIterator<Item = PathSlice<'l>>>(iter: T) -> PathBuffer
Creates a value from an iterator. Read more
Auto Trait Implementations
impl RefUnwindSafe for PathBuffer
impl Send for PathBuffer
impl Sync for PathBuffer
impl Unpin for PathBuffer
impl UnwindSafe for PathBuffer
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