pub struct DataEdge {
pub from: u64,
pub to: u64,
pub label: String,
pub source: Option<SourceLocation>,
}Expand description
One value transformation observed by the trace. 追踪中观察到的一次值变换。
source is optional only for adapters that cannot provide a callsite;
built-in transformation APIs always fill it.
source 仅在外部适配器无法提供调用点时为空;内置变换 API 总会填充它。
Fields§
§from: u64The source local id this edge leaves. 该边离开的源局部值 id。
to: u64The destination local id this edge enters. 该边进入的目标局部值 id。
label: StringThe transformation kind, for example transform or used by f::p.
变换种类,例如 transform 或 used by f::p。
source: Option<SourceLocation>The callsite that produced the edge, when one is known. 产生该边的调用点(若可知)。
Trait Implementations§
impl Eq for DataEdge
impl StructuralPartialEq for DataEdge
Auto Trait Implementations§
impl Freeze for DataEdge
impl RefUnwindSafe for DataEdge
impl Send for DataEdge
impl Sync for DataEdge
impl Unpin for DataEdge
impl UnsafeUnpin for DataEdge
impl UnwindSafe for DataEdge
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