weave-lens · crate
Source declarations, signatures and documentation for crate.
Reviewed implementation boundary: The current batching helper rejects multiple operations instead of implementing atomic batch commits. Cache/compaction/retention configuration fields do not establish running background compaction. See /libraries/lens/overview.
Source: sigil/weave/models/lens/src/lib.rs. SHA-256: 82d5ac808fbee5b3e931d7201b23aecccc8a24380aed3e7102040ba5b48192d2.
This reference follows declared source modules, retains conditional attributes, and includes public declarations and implementation methods. Private-module re-exports and trait resolution require the compiler; this is a source reference, not a claim that every listed item is a root import. Function bodies and constant values are omitted.
pub use batch::{Batch, BatchOp};
pub use batch::{Batch, BatchOp};Source line: 55.
pub use block::{BlockCache, BlockPointer};
pub use block::{BlockCache, BlockPointer};Source line: 56.
pub use cache::CacheStats;
pub use cache::CacheStats;Source line: 57.
pub use config::{CompactionOptions, LensConfig};
pub use config::{CompactionOptions, LensConfig};Source line: 58.
pub use error::{LensError, Result};
pub use error::{LensError, Result};Source line: 59.
pub use iterator::{Direction, ReadOptions, ReadStream};
pub use iterator::{Direction, ReadOptions, ReadStream};Source line: 60.
pub use lens::Lens;
pub use lens::Lens;Source line: 61.
pub use lens_policy::{set_lens_policy, AllowAllLensPolicy, LensPolicy};
#[cfg(feature = "policy-hooks")]
pub use lens_policy::{set_lens_policy, AllowAllLensPolicy, LensPolicy};Source line: 63.
pub use metrics::{LensMetrics, LensMetricsSnapshot};
pub use metrics::{LensMetrics, LensMetricsSnapshot};Source line: 64.
pub use node::{Key, Node, NodeType, Value, ValueMetadata};
pub use node::{Key, Node, NodeType, Value, ValueMetadata};Source line: 65.
pub use snapshot::{Snapshot, SnapshotId};
pub use snapshot::{Snapshot, SnapshotId};Source line: 66.
pub use sub::{SubDatabase, SubOptions};
pub use sub::{SubDatabase, SubOptions};Source line: 67.
pub use utils::encode_key;
pub use utils::encode_key;Source line: 68.
pub use bytes::Bytes;
pub use bytes::Bytes;Source line: 71.
::LENS_VERSION
Version of the lens data format
pub const LENS_VERSION: u32;Source line: 74.
::DEFAULT_ORDER
Default B-tree order (max children per node)
pub const DEFAULT_ORDER: usize;Source line: 77.