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