idalib_sys::func

Struct gdl_graph_t

#[repr(C)]
pub struct gdl_graph_t { /* private fields */ }
Expand description

gdl graph interface - includes only functions required to draw it

Implementations§

§

impl gdl_graph_t

pub unsafe fn begin<'a>( self: &'a gdl_graph_t, ) -> impl New<Output = node_iterator> + 'a

pub unsafe fn end<'a>( self: &'a gdl_graph_t, ) -> impl New<Output = node_iterator> + 'a

pub unsafe fn get_node_label( self: &gdl_graph_t, iobuf: *mut c_char, iobufsize: c_int, n: c_int, ) -> *mut c_char

pub unsafe fn print_graph_attributes(self: &gdl_graph_t, fp: *mut _IO_FILE)

pub unsafe fn print_node( self: &gdl_graph_t, fp: *mut _IO_FILE, n: c_int, ) -> bool

pub unsafe fn print_edge( self: &gdl_graph_t, fp: *mut _IO_FILE, i: c_int, j: c_int, ) -> bool

pub unsafe fn print_node_attributes( self: &gdl_graph_t, fp: *mut _IO_FILE, n: c_int, )

pub unsafe fn size(self: &gdl_graph_t) -> c_int

pub unsafe fn node_qty(self: &gdl_graph_t) -> c_int

pub unsafe fn exists(self: &gdl_graph_t, node: c_int) -> bool

pub unsafe fn entry(self: &gdl_graph_t) -> c_int

pub unsafe fn exit(self: &gdl_graph_t) -> c_int

pub unsafe fn nsucc(self: &gdl_graph_t, node: c_int) -> c_int

pub unsafe fn npred(self: &gdl_graph_t, node: c_int) -> c_int

pub unsafe fn succ(self: &gdl_graph_t, node: c_int, i: c_int) -> c_int

pub unsafe fn pred(self: &gdl_graph_t, node: c_int, i: c_int) -> c_int

pub unsafe fn empty(self: &gdl_graph_t) -> bool

pub unsafe fn get_node_color(self: &gdl_graph_t, n: c_int) -> c_uint

pub unsafe fn get_edge_color(self: &gdl_graph_t, i: c_int, j: c_int) -> c_uint

§

impl gdl_graph_t

pub unsafe fn gen_gdl(&self, fp: *mut _IO_FILE)

§

impl gdl_graph_t

pub unsafe fn gen_gdl1(&self, file: *const c_char)

§

impl gdl_graph_t

pub unsafe fn nedge(&self, node: c_int, ispred: bool) -> usize

§

impl gdl_graph_t

pub unsafe fn edge(&self, node: c_int, i: c_int, ispred: bool) -> c_int

§

impl gdl_graph_t

pub unsafe fn front(self: Pin<&mut Self>) -> c_int

§

impl gdl_graph_t

pub unsafe fn path_exists(&self, m: c_int, n: c_int) -> bool

§

impl gdl_graph_t

pub unsafe fn gen_dot(&self, fp: *mut _IO_FILE)

§

impl gdl_graph_t

pub unsafe fn gen_dot1(&self, file: *const c_char)

Trait Implementations§

§

impl Drop for gdl_graph_t

§

fn drop(self: &mut gdl_graph_t)

Executes the destructor for this type. Read more
§

impl ExternType for gdl_graph_t

§

type Kind = Opaque

source§

type Id

A type-level representation of the type’s C++ namespace and type name. Read more
§

impl MakeCppStorage for gdl_graph_t

§

unsafe fn allocate_uninitialized_cpp_storage() -> *mut gdl_graph_t

Allocates heap space for this type in C++ and return a pointer to that space, but do not initialize that space (i.e. do not yet call a constructor). Read more
§

unsafe fn free_uninitialized_cpp_storage(arg0: *mut gdl_graph_t)

Frees a C++ allocation which has not yet had a constructor called. Read more
§

impl SharedPtrTarget for gdl_graph_t

§

impl UniquePtrTarget for gdl_graph_t

§

impl WeakPtrTarget for gdl_graph_t

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.