pub struct Ctx<'a> {
pub device: Option<&'a Device>,
}Expand description
What a node knows beyond its input, which travels separately. A type rather than an argument because it is the channel: adding to it is additive, and every node ever written has this signature.
Fields§
§device: Option<&'a Device>Where this node was said to run, if it was said. It arrives as information: the core cannot move anything to a GPU, so the one that obeys is the node.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Ctx<'a>
impl<'a> RefUnwindSafe for Ctx<'a>
impl<'a> Send for Ctx<'a>
impl<'a> Sync for Ctx<'a>
impl<'a> Unpin for Ctx<'a>
impl<'a> UnsafeUnpin for Ctx<'a>
impl<'a> UnwindSafe for Ctx<'a>
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