pub struct SvgMultiPolygonVec { /* private fields */ }Implementations§
Source§impl SvgMultiPolygonVec
impl SvgMultiPolygonVec
pub fn new() -> SvgMultiPolygonVec
pub fn with_capacity(cap: usize) -> SvgMultiPolygonVec
pub const fn from_const_slice( input: &'static [SvgMultiPolygon], ) -> SvgMultiPolygonVec
pub fn from_vec(input: Vec<SvgMultiPolygon>) -> SvgMultiPolygonVec
pub fn iter(&self) -> Iter<'_, SvgMultiPolygon>
pub const fn len(&self) -> usize
pub const fn capacity(&self) -> usize
pub const fn is_empty(&self) -> bool
Sourcepub fn get(&self, index: usize) -> Option<&SvgMultiPolygon>
pub fn get(&self, index: usize) -> Option<&SvgMultiPolygon>
Returns a reference to the element at the given index (Rust-only, inline).
Sourcepub fn c_get(&self, index: usize) -> OptionSvgMultiPolygonwhere
SvgMultiPolygon: Clone,
pub fn c_get(&self, index: usize) -> OptionSvgMultiPolygonwhere
SvgMultiPolygon: Clone,
C-API compatible get function. Returns a copy of the element at the given index. Returns None if the index is out of bounds.
Sourcepub fn as_slice(&self) -> &[SvgMultiPolygon]
pub fn as_slice(&self) -> &[SvgMultiPolygon]
Returns the vec as a Rust slice (Rust-only, not C-API compatible).
Sourcepub fn as_c_slice(&self) -> SvgMultiPolygonVecSlice
pub fn as_c_slice(&self) -> SvgMultiPolygonVecSlice
Returns a C-compatible slice of the entire Vec.
Sourcepub fn as_c_slice_range(
&self,
start: usize,
end: usize,
) -> SvgMultiPolygonVecSlice
pub fn as_c_slice_range( &self, start: usize, end: usize, ) -> SvgMultiPolygonVecSlice
Returns a C-compatible slice of a range within the Vec. If the range is out of bounds, it is clamped to the valid range.
Sourcepub fn as_ptr(&self) -> *const SvgMultiPolygon
pub fn as_ptr(&self) -> *const SvgMultiPolygon
Returns a pointer to the Vec’s data.
Use len() to get the number of elements.
Source§impl SvgMultiPolygonVec
impl SvgMultiPolygonVec
pub fn from_copy_on_write( input: Cow<'static, [SvgMultiPolygon]>, ) -> SvgMultiPolygonVec
Sourcepub fn from_item(item: SvgMultiPolygon) -> SvgMultiPolygonVec
pub fn from_item(item: SvgMultiPolygon) -> SvgMultiPolygonVec
Creates a Vec containing a single element
Sourcepub unsafe fn copy_from_ptr(
ptr: *const SvgMultiPolygon,
len: usize,
) -> SvgMultiPolygonVec
pub unsafe fn copy_from_ptr( ptr: *const SvgMultiPolygon, len: usize, ) -> SvgMultiPolygonVec
Copies elements from a C array pointer into a new Vec.
§Safety
ptrmust be valid for readinglenelements- The memory must be properly aligned for
$struct_type - The elements are cloned, so
$struct_typemust implementClone
Sourcepub fn clone_self(&self) -> SvgMultiPolygonVec
pub fn clone_self(&self) -> SvgMultiPolygonVec
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<SvgMultiPolygon>
pub fn into_library_owned_vec(self) -> Vec<SvgMultiPolygon>
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<[SvgMultiPolygon]> for SvgMultiPolygonVec
impl AsRef<[SvgMultiPolygon]> for SvgMultiPolygonVec
Source§fn as_ref(&self) -> &[SvgMultiPolygon]
fn as_ref(&self) -> &[SvgMultiPolygon]
Source§impl Clone for SvgMultiPolygonVec
impl Clone for SvgMultiPolygonVec
Source§fn clone(&self) -> SvgMultiPolygonVec
fn clone(&self) -> SvgMultiPolygonVec
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for SvgMultiPolygonVec
impl Debug for SvgMultiPolygonVec
Source§impl Default for SvgMultiPolygonVec
impl Default for SvgMultiPolygonVec
Source§fn default() -> SvgMultiPolygonVec
fn default() -> SvgMultiPolygonVec
Source§impl Drop for SvgMultiPolygonVec
impl Drop for SvgMultiPolygonVec
Source§impl From<&'static [SvgMultiPolygon]> for SvgMultiPolygonVec
impl From<&'static [SvgMultiPolygon]> for SvgMultiPolygonVec
Source§fn from(input: &'static [SvgMultiPolygon]) -> SvgMultiPolygonVec
fn from(input: &'static [SvgMultiPolygon]) -> SvgMultiPolygonVec
Source§impl From<Vec<SvgMultiPolygon>> for SvgMultiPolygonVec
impl From<Vec<SvgMultiPolygon>> for SvgMultiPolygonVec
Source§fn from(input: Vec<SvgMultiPolygon>) -> SvgMultiPolygonVec
fn from(input: Vec<SvgMultiPolygon>) -> SvgMultiPolygonVec
Source§impl FromIterator<SvgMultiPolygon> for SvgMultiPolygonVec
impl FromIterator<SvgMultiPolygon> for SvgMultiPolygonVec
Source§fn from_iter<T>(iter: T) -> SvgMultiPolygonVecwhere
T: IntoIterator<Item = SvgMultiPolygon>,
fn from_iter<T>(iter: T) -> SvgMultiPolygonVecwhere
T: IntoIterator<Item = SvgMultiPolygon>,
Source§impl PartialEq for SvgMultiPolygonVec
impl PartialEq for SvgMultiPolygonVec
Source§fn eq(&self, rhs: &SvgMultiPolygonVec) -> bool
fn eq(&self, rhs: &SvgMultiPolygonVec) -> bool
self and other values to be equal, and is used by ==.Source§impl PartialOrd for SvgMultiPolygonVec
impl PartialOrd for SvgMultiPolygonVec
impl Send for SvgMultiPolygonVec
impl Sync for SvgMultiPolygonVec
Auto Trait Implementations§
impl Freeze for SvgMultiPolygonVec
impl RefUnwindSafe for SvgMultiPolygonVec
impl Unpin for SvgMultiPolygonVec
impl UnsafeUnpin for SvgMultiPolygonVec
impl UnwindSafe for SvgMultiPolygonVec
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more