pub struct MemoryEdge {
pub source_id: Option<u64>,
pub target_id: Option<u64>,
pub importance: Option<u32>,
pub overridable: Option<bool>,
}Expand description
A directed edge that connects any 2 nodes in the graph above. These are in addition to the inherent edges added due to the tree structure of the node’s absolute names. Node with id |source_id| owns the node with id |target_id|, and has the effect of attributing the memory usage of target to source. |importance| is optional and relevant only for the cases of co-ownership, where it acts as a z-index: the owner with the highest importance will be attributed target’s memory.
Fields§
§source_id: Option<u64>§target_id: Option<u64>§importance: Option<u32>§overridable: Option<bool>Implementations§
Source§impl MemoryEdge
impl MemoryEdge
Sourcepub fn source_id(&self) -> u64
pub fn source_id(&self) -> u64
Returns the value of source_id, or the default value if source_id is unset.
Sourcepub fn target_id(&self) -> u64
pub fn target_id(&self) -> u64
Returns the value of target_id, or the default value if target_id is unset.
Sourcepub fn importance(&self) -> u32
pub fn importance(&self) -> u32
Returns the value of importance, or the default value if importance is unset.
Sourcepub fn overridable(&self) -> bool
pub fn overridable(&self) -> bool
Returns the value of overridable, or the default value if overridable is unset.
Trait Implementations§
Source§impl Clone for MemoryEdge
impl Clone for MemoryEdge
Source§fn clone(&self) -> MemoryEdge
fn clone(&self) -> MemoryEdge
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for MemoryEdge
impl Debug for MemoryEdge
Source§impl Default for MemoryEdge
impl Default for MemoryEdge
Source§impl Hash for MemoryEdge
impl Hash for MemoryEdge
Source§impl Message for MemoryEdge
impl Message for MemoryEdge
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self.Source§impl PartialEq for MemoryEdge
impl PartialEq for MemoryEdge
Source§fn eq(&self, other: &MemoryEdge) -> bool
fn eq(&self, other: &MemoryEdge) -> bool
self and other values to be equal, and is used by ==.