pub struct Prim<T>(/* private fields */);
Expand description
This represents a non-collection value, like an int, bool, or struct.
Implementations§
Source§impl<T: 'static> Prim<T>
impl<T: 'static> Prim<T>
pub fn new(initial: T) -> Self
Sourcepub fn add_next(&self, link: &Link)
pub fn add_next(&self, link: &Link)
Used internally by the link!
macro to establish graph edges between an input
value and the link.
Sourcepub fn set(&self, pc: &mut ProcessingContext<'_>, value: T)
pub fn set(&self, pc: &mut ProcessingContext<'_>, value: T)
Modify the value and mark downstream links as needing to be rerun.
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for Prim<T>
impl<T> !RefUnwindSafe for Prim<T>
impl<T> !Send for Prim<T>
impl<T> !Sync for Prim<T>
impl<T> Unpin for Prim<T>
impl<T> !UnwindSafe for Prim<T>
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