Struct rute::auto::line_ffi::RULineFuncs

source ·
#[repr(C)]
pub struct RULineFuncs {
Show 15 fields pub destroy: extern "C" fn(self_c: *const RUBase), pub is_null: extern "C" fn(self_c: *const RUBase) -> bool, pub p1: extern "C" fn(self_c: *const RUBase) -> RUPoint, pub p2: extern "C" fn(self_c: *const RUBase) -> RUPoint, pub x1: extern "C" fn(self_c: *const RUBase) -> i32, pub y1: extern "C" fn(self_c: *const RUBase) -> i32, pub x2: extern "C" fn(self_c: *const RUBase) -> i32, pub y2: extern "C" fn(self_c: *const RUBase) -> i32, pub dx: extern "C" fn(self_c: *const RUBase) -> i32, pub dy: extern "C" fn(self_c: *const RUBase) -> i32, pub center: extern "C" fn(self_c: *const RUBase) -> RUPoint, pub set_p1: extern "C" fn(self_c: *const RUBase, p1: *const RUBase), pub set_p2: extern "C" fn(self_c: *const RUBase, p2: *const RUBase), pub set_points: extern "C" fn(self_c: *const RUBase, p1: *const RUBase, p2: *const RUBase), pub set_line: extern "C" fn(self_c: *const RUBase, x1: i32, y1: i32, x2: i32, y2: i32),
}

Fields

destroy: extern "C" fn(self_c: *const RUBase)is_null: extern "C" fn(self_c: *const RUBase) -> boolp1: extern "C" fn(self_c: *const RUBase) -> RUPointp2: extern "C" fn(self_c: *const RUBase) -> RUPointx1: extern "C" fn(self_c: *const RUBase) -> i32y1: extern "C" fn(self_c: *const RUBase) -> i32x2: extern "C" fn(self_c: *const RUBase) -> i32y2: extern "C" fn(self_c: *const RUBase) -> i32dx: extern "C" fn(self_c: *const RUBase) -> i32dy: extern "C" fn(self_c: *const RUBase) -> i32center: extern "C" fn(self_c: *const RUBase) -> RUPointset_p1: extern "C" fn(self_c: *const RUBase, p1: *const RUBase)set_p2: extern "C" fn(self_c: *const RUBase, p2: *const RUBase)set_points: extern "C" fn(self_c: *const RUBase, p1: *const RUBase, p2: *const RUBase)set_line: extern "C" fn(self_c: *const RUBase, x1: i32, y1: i32, x2: i32, y2: i32)

Trait Implementations

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

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

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.