pub struct KgliteGraph { /* private fields */ }Expand description
Opaque handle for a knowledge graph. The C-side caller only
ever sees KgliteGraph*; allocation, deallocation, and field
access happen inside kglite-c.
cbindgen sees the #[repr(C)] empty struct and renders only a
forward declaration in kglite.h. The actual state lives in
the private [GraphState] sidecar: every *mut KgliteGraph
the C side holds is really a *mut GraphState cast through
the opaque facade.
Auto Trait Implementations§
impl Freeze for KgliteGraph
impl RefUnwindSafe for KgliteGraph
impl !Send for KgliteGraph
impl !Sync for KgliteGraph
impl !Unpin for KgliteGraph
impl UnsafeUnpin for KgliteGraph
impl UnwindSafe for KgliteGraph
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