#[repr(C)]pub struct TLGraphResult {
pub graph_data: *mut c_char,
pub error_message: *mut c_char,
pub tensor_count: usize,
pub node_count: usize,
}Expand description
FFI-compatible result type for graph compilation
Fields§
§graph_data: *mut c_charThe compiled graph as JSON string (NULL on error)
error_message: *mut c_charError message (NULL on success)
tensor_count: usizeNumber of tensors in the graph (0 on error)
node_count: usizeNumber of nodes in the graph (0 on error)
Auto Trait Implementations§
impl Freeze for TLGraphResult
impl RefUnwindSafe for TLGraphResult
impl !Send for TLGraphResult
impl !Sync for TLGraphResult
impl Unpin for TLGraphResult
impl UnwindSafe for TLGraphResult
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