pub struct KindRow {
pub name: &'static str,
pub bucket: RelBucket,
pub inverse_name: Option<&'static str>,
pub bidirectional: bool,
pub default_strength: f32,
pub kernel_const_name: &'static str,
pub companion: bool,
}Expand description
One row of the const kind table the pack! macro emits. Authored kinds
carry companion: false; auto-registered inverse companions (R-T4) carry
companion: true. Companions get no type triples and therefore cannot be
authored directly (the R-T17 lookup fails for them).
Fields§
§name: &'static strDisplay name of the kind (also its stable Cypher label, R-T2).
bucket: RelBucketBucket the kind belongs to.
inverse_name: Option<&'static str>Name of the inverse kind (None when the kind has no inverse).
Self-inverse kinds point at their own name.
bidirectional: boolWhether the kind is symmetric/bidirectional.
default_strength: f32Default strength applied when an EdgeHint omits strength.
kernel_const_name: &'static strName of the kernel constant this kind binds (“” for none / companions).
companion: booltrue for auto-registered inverse companion rows.
Auto Trait Implementations§
impl Freeze for KindRow
impl RefUnwindSafe for KindRow
impl Send for KindRow
impl Sync for KindRow
impl Unpin for KindRow
impl UnsafeUnpin for KindRow
impl UnwindSafe for KindRow
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