pub struct GraphLayer<'net> { /* private fields */ }Expand description
A layer a loaded graph owns, borrowed for native calls.
Net::layer_handle builds one for an index the graph loaded. The
native layer belongs to the network and stays valid until the graph is cleared or reloaded,
while this value owns only the C handle around it, which releases on drop and never destroys the
layer. The borrow of the network keeps the layer alive for as long as the handle exists. A
registered custom layer keeps its userdata, so a native call that rewrites userdata breaks the
registration.
Implementations§
Source§impl<'net> GraphLayer<'net>
impl<'net> GraphLayer<'net>
Trait Implementations§
Source§impl Drop for GraphLayer<'_>
impl Drop for GraphLayer<'_>
Auto Trait Implementations§
impl<'net> !RefUnwindSafe for GraphLayer<'net>
impl<'net> !Send for GraphLayer<'net>
impl<'net> !Sync for GraphLayer<'net>
impl<'net> !UnwindSafe for GraphLayer<'net>
impl<'net> Freeze for GraphLayer<'net>
impl<'net> Unpin for GraphLayer<'net>
impl<'net> UnsafeUnpin for GraphLayer<'net>
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