pub struct LineSegmentVec {
pub run_destructor: bool,
/* private fields */
}Fields§
§run_destructor: boolWhether to run the destructor on drop (prevents double-free when cloned to C)
Implementations§
Source§impl LineSegmentVec
impl LineSegmentVec
pub fn new() -> LineSegmentVec
pub fn with_capacity(cap: usize) -> Self
pub const fn from_const_slice(input: &'static [LineSegment]) -> Self
pub fn from_vec(input: Vec<LineSegment>) -> Self
pub fn iter(&self) -> Iter<'_, LineSegment>
pub fn ptr_as_usize(&self) -> usize
pub const fn len(&self) -> usize
pub const fn capacity(&self) -> usize
pub const fn is_empty(&self) -> bool
pub fn get(&self, index: usize) -> Option<&LineSegment>
pub fn as_slice(&self) -> &[LineSegment]
Source§impl LineSegmentVec
impl LineSegmentVec
pub fn from_copy_on_write(input: Cow<'static, [LineSegment]>) -> LineSegmentVec
Sourcepub fn clone_self(&self) -> Self
pub fn clone_self(&self) -> Self
NOTE: CLONES the memory if the memory is external or &’static Moves the memory out if the memory is library-allocated
Sourcepub fn into_library_owned_vec(self) -> Vec<LineSegment>
pub fn into_library_owned_vec(self) -> Vec<LineSegment>
NOTE: CLONES the memory if the memory is external or &’static Moves the memory out if the memory is library-allocated
Trait Implementations§
Source§impl AsRef<[LineSegment]> for LineSegmentVec
impl AsRef<[LineSegment]> for LineSegmentVec
Source§fn as_ref(&self) -> &[LineSegment]
fn as_ref(&self) -> &[LineSegment]
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl Clone for LineSegmentVec
impl Clone for LineSegmentVec
Source§impl Debug for LineSegmentVec
impl Debug for LineSegmentVec
Source§impl Default for LineSegmentVec
impl Default for LineSegmentVec
Source§impl Drop for LineSegmentVec
impl Drop for LineSegmentVec
Source§impl From<&'static [LineSegment]> for LineSegmentVec
impl From<&'static [LineSegment]> for LineSegmentVec
Source§fn from(input: &'static [LineSegment]) -> LineSegmentVec
fn from(input: &'static [LineSegment]) -> LineSegmentVec
Converts to this type from the input type.
Source§impl From<Vec<LineSegment>> for LineSegmentVec
impl From<Vec<LineSegment>> for LineSegmentVec
Source§fn from(input: Vec<LineSegment>) -> LineSegmentVec
fn from(input: Vec<LineSegment>) -> LineSegmentVec
Converts to this type from the input type.
Source§impl FromIterator<LineSegment> for LineSegmentVec
impl FromIterator<LineSegment> for LineSegmentVec
Source§fn from_iter<T>(iter: T) -> Selfwhere
T: IntoIterator<Item = LineSegment>,
fn from_iter<T>(iter: T) -> Selfwhere
T: IntoIterator<Item = LineSegment>,
Creates a value from an iterator. Read more
Source§impl PartialEq for LineSegmentVec
impl PartialEq for LineSegmentVec
impl Send for LineSegmentVec
impl Sync for LineSegmentVec
Auto Trait Implementations§
impl Freeze for LineSegmentVec
impl RefUnwindSafe for LineSegmentVec
impl Unpin for LineSegmentVec
impl UnwindSafe for LineSegmentVec
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