Skip to main content

HashNodeFlags

Trait HashNodeFlags 

Source
pub trait HashNodeFlags {
    // Required methods
    fn flags(&self) -> u32;
    fn set_disabled(&mut self, disabled: bool);

    // Provided method
    fn is_disabled(&self) -> bool { ... }
}
Expand description

Trait exposing the DISABLED flag on a hash-node value.

Implemented for the per-table value types so the generic ops (gethashnode/disablehashnode/etc.) can filter / mutate without per-table dispatch. Mirrors C’s HashNode->flags field which every node struct embeds via the struct hashnode header.

Required Methods§

Source

fn flags(&self) -> u32

Source

fn set_disabled(&mut self, disabled: bool)

Provided Methods§

Source

fn is_disabled(&self) -> bool

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§