pub struct Metadata {
pub ancestors: usize,
pub depth: bool,
pub parent: bool,
pub children: bool,
}Expand description
Node metadata needed by a query capture.
Fields§
§ancestors: usizeMaximum number of ancestor names to collect. Zero disables collection.
depth: boolWhether to collect ancestor depth without relying on ancestor names.
parent: boolWhether the immediate parent ID is needed for direct rainbow scopes.
children: boolWhether to collect immediate children to exclude from injected content.
Trait Implementations§
Auto Trait Implementations§
impl Forget for Metadata
impl Freeze for Metadata
impl Move for Metadata
impl RefUnwindSafe for Metadata
impl Send for Metadata
impl Sync for Metadata
impl Unpin for Metadata
impl UnsafeUnpin for Metadata
impl UnwindSafe for Metadata
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