pub struct EntityContext {
pub entity: Entity,
pub edges: Vec<Edge>,
pub neighbors: Vec<Entity>,
}Expand description
Context around an entity — its immediate neighbors and edges.
Fields§
§entity: Entity§edges: Vec<Edge>§neighbors: Vec<Entity>Trait Implementations§
Source§impl Clone for EntityContext
impl Clone for EntityContext
Source§fn clone(&self) -> EntityContext
fn clone(&self) -> EntityContext
Returns a duplicate of the value. Read more
1.0.0 · 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 EntityContext
impl Debug for EntityContext
Source§impl<'de> Deserialize<'de> for EntityContext
impl<'de> Deserialize<'de> for EntityContext
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for EntityContext
impl RefUnwindSafe for EntityContext
impl Send for EntityContext
impl Sync for EntityContext
impl Unpin for EntityContext
impl UnsafeUnpin for EntityContext
impl UnwindSafe for EntityContext
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