Skip to main content

ShapeC

Struct ShapeC 

Source
#[repr(C)]
pub struct ShapeC { pub vtable_: *const ShapeC__bindgen_vtable, pub valid: bool, pub fname: *mut i8, pub encode: *mut i8, pub hSHP: *mut c_void, pub hDBF: *mut c_void, pub c: i32, }
Expand description

no more use (only for test)

Fields§

§vtable_: *const ShapeC__bindgen_vtable§valid: bool§fname: *mut i8§encode: *mut i8§hSHP: *mut c_void§hDBF: *mut c_void§c: i32

Implementations§

Source§

impl ShapeC

Source

pub unsafe fn is_valid(&mut self) -> bool

Source

pub unsafe fn dispose(&mut self)

Source

pub unsafe fn disp_record_inf(&mut self)

Source

pub unsafe fn alloc_gci(&mut self) -> *mut c_void

Source

pub unsafe fn free_gci(&mut self, p_gci: *mut c_void)

Source

pub unsafe fn get_shape(&mut self, p_gci: *mut c_void)

Source

pub unsafe fn from(a: i32, b: i32) -> ShapeC

Source

pub unsafe fn to_int(&mut self) -> i32

Source

pub unsafe fn new(fn_: *const i8, enc: *const i8) -> ShapeC

Trait Implementations§

Source§

impl Debug for ShapeC

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
Source§

impl Drop for ShapeC

trait Drop

Source§

fn drop(&mut self)

dispose

Source§

fn pin_drop(self: Pin<&mut Self>)

🔬This is a nightly-only experimental API. (pin_ergonomics)
Execute the destructor for this type, but different to Drop::drop, it requires self to be pinned. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.