pub struct PathBuffer { /* private fields */ }
Expand description
An object that stores multiple paths contiguously.
Implementations§
source§impl 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<'_> ⓘ
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§
source§impl Clone for PathBuffer
impl Clone for PathBuffer
source§fn clone(&self) -> PathBuffer
fn clone(&self) -> PathBuffer
Returns a copy 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 Debug for PathBuffer
impl Debug for PathBuffer
source§impl Default for PathBuffer
impl Default for PathBuffer
source§fn default() -> PathBuffer
fn default() -> PathBuffer
Returns the “default value” for a type. Read more
source§impl<'l> FromIterator<PathSlice<'l>> for PathBuffer
impl<'l> FromIterator<PathSlice<'l>> for PathBuffer
source§fn 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 Freeze for PathBuffer
impl RefUnwindSafe for PathBuffer
impl Send for PathBuffer
impl Sync for PathBuffer
impl Unpin for PathBuffer
impl UnwindSafe for PathBuffer
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)