#[repr(C)]pub struct InternalArray {
pub data: *mut c_void,
pub len: size_t,
}Expand description
A C-compatible struct originating inside Rust
used for passing arrays across the FFI boundary
Fields§
§data: *mut c_void§len: size_tTrait Implementations§
Source§impl From<InternalArray> for LineString<f64>
impl From<InternalArray> for LineString<f64>
Source§fn from(arr: InternalArray) -> Self
fn from(arr: InternalArray) -> Self
Converts to this type from the input type.
Source§impl From<InternalArray> for Vec<usize>
impl From<InternalArray> for Vec<usize>
Source§fn from(arr: InternalArray) -> Self
fn from(arr: InternalArray) -> Self
Converts to this type from the input type.
Source§impl<T> From<LineString<T>> for InternalArraywhere
T: CoordFloat,
impl<T> From<LineString<T>> for InternalArraywhere
T: CoordFloat,
Source§fn from(sl: LineString<T>) -> Self
fn from(sl: LineString<T>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for InternalArray
impl RefUnwindSafe for InternalArray
impl !Send for InternalArray
impl !Sync for InternalArray
impl Unpin for InternalArray
impl UnwindSafe for InternalArray
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> 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>
Converts
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>
Converts
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