pub struct ShapePointVec {
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 ShapePointVec
impl ShapePointVec
pub fn new() -> ShapePointVec
pub fn with_capacity(cap: usize) -> Self
pub const fn from_const_slice(input: &'static [ShapePoint]) -> Self
pub fn from_vec(input: Vec<ShapePoint>) -> Self
pub fn iter(&self) -> Iter<'_, ShapePoint>
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<&ShapePoint>
pub fn as_slice(&self) -> &[ShapePoint]
Source§impl ShapePointVec
impl ShapePointVec
pub fn from_copy_on_write(input: Cow<'static, [ShapePoint]>) -> ShapePointVec
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<ShapePoint>
pub fn into_library_owned_vec(self) -> Vec<ShapePoint>
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<[ShapePoint]> for ShapePointVec
impl AsRef<[ShapePoint]> for ShapePointVec
Source§fn as_ref(&self) -> &[ShapePoint]
fn as_ref(&self) -> &[ShapePoint]
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl Clone for ShapePointVec
impl Clone for ShapePointVec
Source§impl Debug for ShapePointVec
impl Debug for ShapePointVec
Source§impl Default for ShapePointVec
impl Default for ShapePointVec
Source§impl Drop for ShapePointVec
impl Drop for ShapePointVec
Source§impl From<&'static [ShapePoint]> for ShapePointVec
impl From<&'static [ShapePoint]> for ShapePointVec
Source§fn from(input: &'static [ShapePoint]) -> ShapePointVec
fn from(input: &'static [ShapePoint]) -> ShapePointVec
Converts to this type from the input type.
Source§impl From<Vec<ShapePoint>> for ShapePointVec
impl From<Vec<ShapePoint>> for ShapePointVec
Source§fn from(input: Vec<ShapePoint>) -> ShapePointVec
fn from(input: Vec<ShapePoint>) -> ShapePointVec
Converts to this type from the input type.
Source§impl FromIterator<ShapePoint> for ShapePointVec
impl FromIterator<ShapePoint> for ShapePointVec
Source§fn from_iter<T>(iter: T) -> Selfwhere
T: IntoIterator<Item = ShapePoint>,
fn from_iter<T>(iter: T) -> Selfwhere
T: IntoIterator<Item = ShapePoint>,
Creates a value from an iterator. Read more
Source§impl Hash for ShapePointVec
impl Hash for ShapePointVec
Source§impl Ord for ShapePointVec
impl Ord for ShapePointVec
Source§impl PartialEq for ShapePointVec
impl PartialEq for ShapePointVec
Source§impl PartialOrd for ShapePointVec
impl PartialOrd for ShapePointVec
impl Eq for ShapePointVec
impl Send for ShapePointVec
impl Sync for ShapePointVec
Auto Trait Implementations§
impl Freeze for ShapePointVec
impl RefUnwindSafe for ShapePointVec
impl Unpin for ShapePointVec
impl UnwindSafe for ShapePointVec
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