pub struct Ref<X: GXExt> {
pub id: ExprId,
pub last: Option<Value>,
pub bid: BindId,
pub target_bid: Option<BindId>,
pub typ: Type,
/* private fields */
}Fields§
§id: ExprId§last: Option<Value>§bid: BindId§target_bid: Option<BindId>§typ: TypeImplementations§
Source§impl<X: GXExt> Ref<X>
impl<X: GXExt> Ref<X>
Sourcepub fn set<T: Into<Value>>(&mut self, v: T) -> Result<()>
pub fn set<T: Into<Value>>(&mut self, v: T) -> Result<()>
set the value of the ref r <-
This will cause all nodes dependent on this id to update. This is the
same thing as the <- operator in Graphix. This does the same thing as
GXHandle::set
Trait Implementations§
Auto Trait Implementations§
impl<X> Freeze for Ref<X>
impl<X> !RefUnwindSafe for Ref<X>
impl<X> Send for Ref<X>
impl<X> Sync for Ref<X>
impl<X> Unpin for Ref<X>
impl<X> !UnwindSafe for Ref<X>
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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