pub struct RuntimeReflector { /* private fields */ }Expand description
Runtime reflection capabilities
Implementations§
Source§impl RuntimeReflector
impl RuntimeReflector
Sourcepub fn register_type(&mut self, name: String, info: TypeInfo)
pub fn register_type(&mut self, name: String, info: TypeInfo)
Register type information
Sourcepub fn register_operation(&mut self, name: String, info: OperationInfo)
pub fn register_operation(&mut self, name: String, info: OperationInfo)
Register operation information
Sourcepub fn reflect_graph(&self, graph: &ComputationGraph) -> GraphReflection
pub fn reflect_graph(&self, graph: &ComputationGraph) -> GraphReflection
Reflect on a computation graph
Auto Trait Implementations§
impl Freeze for RuntimeReflector
impl RefUnwindSafe for RuntimeReflector
impl Send for RuntimeReflector
impl Sync for RuntimeReflector
impl Unpin for RuntimeReflector
impl UnsafeUnpin for RuntimeReflector
impl UnwindSafe for RuntimeReflector
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