pub enum DescribeValue {
Handle(HandleId),
Rendered(Value),
}Expand description
Per-node cache value in describe output. Surfaced as value: <u64> when produced by Graph::describe (raw handle view), or
as value: <T> when produced by
Graph::describe_with_debug (binding-rendered view). Serialized
uniformly without an enum tag — consumers see either a number
or whatever JSON shape the binding emits.
Variants§
Handle(HandleId)
Raw handle view. Default for Graph::describe. The
serialized JSON is a Number (the u64 raw view of the
handle).
Rendered(Value)
Binding-rendered view. Produced by
Graph::describe_with_debug via the supplied
DebugBindingBoundary. The serialized JSON is whatever
shape the binding’s handle_to_debug returned (string,
number, object — fully under binding control).
Trait Implementations§
Source§impl Clone for DescribeValue
impl Clone for DescribeValue
Source§fn clone(&self) -> DescribeValue
fn clone(&self) -> DescribeValue
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DescribeValue
impl Debug for DescribeValue
Source§impl PartialEq for DescribeValue
impl PartialEq for DescribeValue
Source§fn eq(&self, other: &DescribeValue) -> bool
fn eq(&self, other: &DescribeValue) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for DescribeValue
impl Serialize for DescribeValue
impl StructuralPartialEq for DescribeValue
Auto Trait Implementations§
impl Freeze for DescribeValue
impl RefUnwindSafe for DescribeValue
impl Send for DescribeValue
impl Sync for DescribeValue
impl Unpin for DescribeValue
impl UnsafeUnpin for DescribeValue
impl UnwindSafe for DescribeValue
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