pub struct Omnigraph { /* private fields */ }Expand description
Top-level handle to an Omnigraph database.
An Omnigraph is a Lance-native graph database with git-style branching. It stores typed property graphs as per-type Lance datasets coordinated through a Lance manifest table.
Implementations§
Source§impl Omnigraph
impl Omnigraph
Sourcepub async fn init(uri: &str, schema_source: &str) -> Result<Self>
pub async fn init(uri: &str, schema_source: &str) -> Result<Self>
Create a new graph at uri from schema source.
Strict mode: errors with OmniError::AlreadyInitialized if
uri already holds any of the three schema artifacts. To
overwrite an existing graph deliberately, call
Self::init_with_options with InitOptions { force: true }.
Sourcepub async fn init_with_options(
uri: &str,
schema_source: &str,
options: InitOptions,
) -> Result<Self>
pub async fn init_with_options( uri: &str, schema_source: &str, options: InitOptions, ) -> Result<Self>
Create a new graph at uri, with explicit init-time options.
See InitOptions for the safety contract — by default this
behaves identically to Self::init.
Sourcepub async fn open(uri: &str) -> Result<Self>
pub async fn open(uri: &str) -> Result<Self>
Open an existing graph (read-write).
Reads _schema.pg, parses it, builds the catalog, and opens __manifest.
Runs the open-time recovery sweep before returning — see OpenMode.
Sourcepub async fn open_read_only(uri: &str) -> Result<Self>
pub async fn open_read_only(uri: &str) -> Result<Self>
Open an existing graph for read-only consumers (NDJSON export,
commit list, etc.). Skips the recovery sweep — see OpenMode.
Sourcepub fn catalog(&self) -> Arc<Catalog> ⓘ
pub fn catalog(&self) -> Arc<Catalog> ⓘ
Returns an Arc<Catalog> snapshot. Cheap clone of the current
catalog pointer; callers can hold the returned Arc across awaits
without blocking concurrent apply_schema.
Sourcepub fn schema_source(&self) -> Arc<String> ⓘ
pub fn schema_source(&self) -> Arc<String> ⓘ
Returns an Arc<String> snapshot of the schema source.
pub fn uri(&self) -> &str
Sourcepub fn with_policy(self, checker: Arc<dyn PolicyChecker>) -> Self
pub fn with_policy(self, checker: Arc<dyn PolicyChecker>) -> Self
Install a policy checker for engine-layer enforcement (MR-722).
Builder-style setter — consumes self, returns Self. Calling
this on a Omnigraph previously without policy enables
enforce() to fire at every mutating engine method that’s been
wired to call it (currently apply_schema_as; PR #3 fans out to
the remaining writers).
Embedded callers that don’t care about authorization should
just not call this. Server / CLI callers that have loaded a
PolicyEngine from policy.yaml pass it here.
Sourcepub fn with_embedding_config(self, config: Arc<EmbeddingConfig>) -> Self
pub fn with_embedding_config(self, config: Arc<EmbeddingConfig>) -> Self
Install a pre-resolved embedding config (RFC-012 Phase 5). Builder-style,
mirroring Omnigraph::with_policy: a graph served from a cluster
embedding provider profile injects it here; an embedded/CLI caller that doesn’t
call this keeps the EmbeddingClient::from_env() fallback.
pub async fn plan_schema( &self, desired_schema_source: &str, ) -> Result<SchemaMigrationPlan>
pub async fn plan_schema_with_options( &self, desired_schema_source: &str, options: SchemaApplyOptions, ) -> Result<SchemaMigrationPlan>
pub async fn preview_schema_apply_with_options( &self, desired_schema_source: &str, options: SchemaApplyOptions, ) -> Result<SchemaApplyPreview>
pub async fn apply_schema( &self, desired_schema_source: &str, ) -> Result<SchemaApplyResult>
pub async fn apply_schema_with_options( &self, desired_schema_source: &str, options: SchemaApplyOptions, ) -> Result<SchemaApplyResult>
Sourcepub async fn apply_schema_as(
&self,
desired_schema_source: &str,
options: SchemaApplyOptions,
actor: Option<&str>,
) -> Result<SchemaApplyResult>
pub async fn apply_schema_as( &self, desired_schema_source: &str, options: SchemaApplyOptions, actor: Option<&str>, ) -> Result<SchemaApplyResult>
Apply a schema migration with an explicit actor for engine-layer
policy enforcement (MR-722). When a PolicyChecker is installed
via Self::with_policy, this method calls enforce(SchemaApply, Branch("main"), actor) before any apply work happens. Denial
returns OmniError::Policy and leaves the manifest untouched.
The no-actor variants (apply_schema, apply_schema_with_options)
pass None here. They work fine without a policy; if a policy IS
installed and actor is None, enforcement intentionally fails to
prevent silent-bypass-via-forgetting-the-actor footguns.
pub async fn apply_schema_as_with_catalog_check<F>( &self, desired_schema_source: &str, options: SchemaApplyOptions, actor: Option<&str>, validate_catalog: F, ) -> Result<SchemaApplyResult>
pub async fn snapshot_of( &self, target: impl Into<ReadTarget>, ) -> Result<Snapshot>
pub async fn version_of(&self, target: impl Into<ReadTarget>) -> Result<u64>
pub async fn resolved_branch_of( &self, target: impl Into<ReadTarget>, ) -> Result<Option<String>>
Sourcepub async fn sync_branch(&self, branch: &str) -> Result<()>
pub async fn sync_branch(&self, branch: &str) -> Result<()>
Synchronize this handle’s write base to the latest head of the named branch.
Sourcepub async fn refresh(&self) -> Result<()>
pub async fn refresh(&self) -> Result<()>
Re-read the handle-local coordinator state from storage AND run
in-process recovery. Closes the Phase B → Phase C residual (e.g.
MutationStaging::finalize crash mid-publish in a long-running
server) without restart.
Composition mirrors Omnigraph::open_with_storage_and_mode’s
recovery sequence, in the same order, with one restriction: the
manifest-drift heal runs in RollForwardOnly mode (rollback /
abort cases defer to the next ReadWrite open because
Dataset::restore is unsafe under concurrency). Each step:
coordinator.refresh()— re-read manifest.recover_schema_state_files— complete an in-flight schema_apply’s staging→final rename if a SchemaApply sidecar is on disk; idempotent + early-returns when no staging files exist. Required BEFORE manifest-drift recovery so a SchemaApply roll-forward doesn’t publish the manifest while the staging files remain unrenamed (which would corrupt the graph: data on new schema, catalog on old).heal_pending_sidecars_roll_forward— close the finalize→publisher residual via roll-forward; defer rollback work to next ReadWrite open. Serializes against live writers by acquiring each sidecar’s per-(table_key, branch) write queues, so refresh never rolls forward an in-flight writer’s sidecar from under it.runtime_cache.invalidate_all— drop stale per-snapshot caches.
Steady state cost: one list_dir of __recovery/ (typically
returns empty → early return for both passes). No additional
Lance reads.
The staged-write entry points (load_as, mutate_as) run the
same heal via
heal_pending_recovery_sidecars,
so a long-lived server converges on the next write without an
explicit refresh. Engine-internal callers that already hold an
in-flight sidecar (e.g. schema_apply mid-write) MUST use
refresh_coordinator_only to
avoid the recovery sweep racing their own sidecar.
pub async fn resolve_snapshot(&self, branch: &str) -> Result<SnapshotId>
pub async fn diff_between( &self, from: impl Into<ReadTarget>, to: impl Into<ReadTarget>, filter: &ChangeFilter, ) -> Result<ChangeSet>
Sourcepub async fn diff_commits(
&self,
from_commit_id: &str,
to_commit_id: &str,
filter: &ChangeFilter,
) -> Result<ChangeSet>
pub async fn diff_commits( &self, from_commit_id: &str, to_commit_id: &str, filter: &ChangeFilter, ) -> Result<ChangeSet>
Diff two graph commits. Resolves each commit to (manifest_branch, manifest_version)
and creates branch-aware snapshots. Supports cross-branch comparison.
pub async fn entity_at_target( &self, target: impl Into<ReadTarget>, table_key: &str, id: &str, ) -> Result<Option<Value>>
Sourcepub async fn entity_at(
&self,
table_key: &str,
id: &str,
version: u64,
) -> Result<Option<Value>>
pub async fn entity_at( &self, table_key: &str, id: &str, version: u64, ) -> Result<Option<Value>>
Read one entity at a specific manifest version via time travel (on-demand enrichment).
Sourcepub async fn snapshot_at_version(&self, version: u64) -> Result<Snapshot>
pub async fn snapshot_at_version(&self, version: u64) -> Result<Snapshot>
Create a Snapshot at any historical manifest version.
pub async fn export_jsonl( &self, branch: &str, type_names: &[String], table_keys: &[String], ) -> Result<String>
pub async fn export_jsonl_to_writer<W: Write>( &self, branch: &str, type_names: &[String], table_keys: &[String], writer: &mut W, ) -> Result<()>
Sourcepub async fn graph_index(&self) -> Result<Arc<GraphIndex>>
pub async fn graph_index(&self) -> Result<Arc<GraphIndex>>
Get or build the graph index for the current snapshot.
Sourcepub async fn ensure_indices(&self) -> Result<Vec<PendingIndex>>
pub async fn ensure_indices(&self) -> Result<Vec<PendingIndex>>
Ensure BTree scalar indices exist on key columns. Idempotent — Lance skips if index already exists.
Opens sub-tables at their latest version (not snapshot-pinned) because indices must be created on the current head. Any version drift from the snapshot is expected and logged. The resulting versions are committed back to the manifest.
On named branches, indexing preserves lazy branching:
unbranched subtables keep inheriting main, while subtables inherited
from an ancestor branch are first forked into the active branch before
their index metadata is updated.
Returns the declared indexes that could not be materialized on this
pass (today: vector columns with no trainable vectors yet). They are
deferred, not errors; a later ensure_indices/optimize builds them
once the column is trainable. Reads stay correct (brute-force) meanwhile.
pub async fn ensure_indices_on(&self, branch: &str) -> Result<Vec<PendingIndex>>
Sourcepub async fn optimize(&self) -> Result<Vec<TableOptimizeStats>>
pub async fn optimize(&self) -> Result<Vec<TableOptimizeStats>>
Compact small Lance fragments into fewer larger ones across every
node + edge table on main. See [optimize] for details.
Sourcepub async fn repair(&self, options: RepairOptions) -> Result<RepairStats>
pub async fn repair(&self, options: RepairOptions) -> Result<RepairStats>
Classify and explicitly repair uncovered manifest/head drift. See
[repair] for the distinction between safe maintenance drift and
suspicious/unverifiable drift.
Sourcepub async fn cleanup(
&mut self,
options: CleanupPolicyOptions,
) -> Result<Vec<TableCleanupStats>>
pub async fn cleanup( &mut self, options: CleanupPolicyOptions, ) -> Result<Vec<TableCleanupStats>>
Remove Lance manifests (and the fragments they uniquely own) per the
given optimize::CleanupPolicyOptions. Destructive to version
history. See [optimize] for details.
Sourcepub async fn read_blob(
&self,
type_name: &str,
id: &str,
property: &str,
) -> Result<BlobFile>
pub async fn read_blob( &self, type_name: &str, id: &str, property: &str, ) -> Result<BlobFile>
Read a blob from a node by its string ID and property name.
Returns a BlobFile handle with async read(), seek(), tell(),
and metadata accessors (size(), kind(), uri()).
let blob = db.read_blob("Document", "readme", "content").await?;
let bytes = blob.read().await?;pub async fn branch_create(&self, name: &str) -> Result<()>
Sourcepub async fn branch_create_as(
&self,
name: &str,
actor: Option<&str>,
) -> Result<()>
pub async fn branch_create_as( &self, name: &str, actor: Option<&str>, ) -> Result<()>
Create a branch from the coordinator’s currently-open snapshot,
with an explicit actor for engine-layer policy enforcement
(MR-722 fan-out). Scope is TargetBranch(name) — symmetric with
branch_delete_as: the branch being acted upon is the target.
Cedar rules using target_branch_scope: protected therefore see
the new-branch name and can deny e.g. creating any branch named
main from a non-privileged actor.
pub async fn branch_create_from( &self, from: impl Into<ReadTarget>, name: &str, ) -> Result<()>
Sourcepub async fn branch_create_from_as(
&self,
from: impl Into<ReadTarget>,
name: &str,
actor: Option<&str>,
) -> Result<()>
pub async fn branch_create_from_as( &self, from: impl Into<ReadTarget>, name: &str, actor: Option<&str>, ) -> Result<()>
Create a branch from a specific source branch with an explicit actor for engine-layer policy enforcement (MR-722 fan-out).
Scope is BranchTransition { source, target } — matches the
HTTP-layer convention at server_branch_create
(branch=Some(from), target_branch=Some(name)), so engine and
HTTP fire the same Cedar decision. Pinned-snapshot sources
(which aren’t a branch ref) materialize as the sentinel
<snapshot> for the policy check; Cedar rules using
branch_scope: any still match, rules pinning a specific
source branch correctly do not.
pub async fn branch_list(&self) -> Result<Vec<String>>
pub async fn branch_delete(&self, name: &str) -> Result<()>
Sourcepub async fn branch_delete_as(
&self,
name: &str,
actor: Option<&str>,
) -> Result<()>
pub async fn branch_delete_as( &self, name: &str, actor: Option<&str>, ) -> Result<()>
Delete a branch with an explicit actor for engine-layer policy
enforcement (MR-722 fan-out). Scope is TargetBranch(name) —
matches the HTTP-layer convention at server_branch_delete
(branch=None, target_branch=Some(name)). Cedar rules using
target_branch_scope: protected therefore correctly gate
deletion of protected branches (e.g. deny BranchDelete against
main).
pub async fn get_commit(&self, commit_id: &str) -> Result<GraphCommit>
pub async fn list_commits( &self, branch: Option<&str>, ) -> Result<Vec<GraphCommit>>
Source§impl Omnigraph
impl Omnigraph
pub async fn branch_merge( &self, source: &str, target: &str, ) -> Result<MergeOutcome>
pub async fn branch_merge_as( &self, source: &str, target: &str, actor_id: Option<&str>, ) -> Result<MergeOutcome>
Source§impl Omnigraph
impl Omnigraph
Sourcepub async fn query(
&self,
target: impl Into<ReadTarget>,
query_source: &str,
query_name: &str,
params: &ParamMap,
) -> Result<QueryResult>
pub async fn query( &self, target: impl Into<ReadTarget>, query_source: &str, query_name: &str, params: &ParamMap, ) -> Result<QueryResult>
Run a named query against an explicit branch or snapshot target.
Sourcepub async fn run_query_at(
&self,
version: u64,
query_source: &str,
query_name: &str,
params: &ParamMap,
) -> Result<QueryResult>
pub async fn run_query_at( &self, version: u64, query_source: &str, query_name: &str, params: &ParamMap, ) -> Result<QueryResult>
Run a named query against the graph as it existed at a prior manifest version.
Compiles the query normally, builds a temporary (non-cached) graph index if traversal is needed, and executes against the historical snapshot.
Source§impl Omnigraph
impl Omnigraph
pub async fn ingest( &self, branch: &str, from: Option<&str>, data: &str, mode: LoadMode, ) -> Result<IngestResult>
use load_as with an explicit base instead; the ingest family will be removed in a future release
Sourcepub async fn ingest_as(
&self,
branch: &str,
from: Option<&str>,
data: &str,
mode: LoadMode,
actor_id: Option<&str>,
) -> Result<IngestResult>
👎Deprecated: use load_as with an explicit base instead; the ingest family will be removed in a future release
pub async fn ingest_as( &self, branch: &str, from: Option<&str>, data: &str, mode: LoadMode, actor_id: Option<&str>, ) -> Result<IngestResult>
use load_as with an explicit base instead; the ingest family will be removed in a future release
Deprecated shim over the unified load_as. Preserves the historical
ingest contract exactly: from: None means fork from main, and the
base branch is recorded in the result even when the target branch
already existed (no fork happened).
pub async fn ingest_file( &self, branch: &str, from: Option<&str>, path: &str, mode: LoadMode, ) -> Result<IngestResult>
use load_file_as with an explicit base instead; the ingest family will be removed in a future release
pub async fn ingest_file_as( &self, branch: &str, from: Option<&str>, path: &str, mode: LoadMode, actor_id: Option<&str>, ) -> Result<IngestResult>
use load_file_as with an explicit base instead; the ingest family will be removed in a future release
pub async fn load( &self, branch: &str, data: &str, mode: LoadMode, ) -> Result<LoadResult>
Sourcepub async fn load_as(
&self,
branch: &str,
base: Option<&str>,
data: &str,
mode: LoadMode,
actor_id: Option<&str>,
) -> Result<LoadResult>
pub async fn load_as( &self, branch: &str, base: Option<&str>, data: &str, mode: LoadMode, actor_id: Option<&str>, ) -> Result<LoadResult>
Load JSONL data onto branch.
base selects the branch-creation behavior: with Some(base), a
missing target branch is forked from base first (the former
ingest semantics); with None, the target branch must already
exist — staging fails on an unknown branch when it resolves the
manifest snapshot, so a typo’d branch name can never create one.
pub async fn load_file( &self, branch: &str, path: &str, mode: LoadMode, ) -> Result<LoadResult>
Sourcepub async fn load_file_as(
&self,
branch: &str,
base: Option<&str>,
path: &str,
mode: LoadMode,
actor_id: Option<&str>,
) -> Result<LoadResult>
pub async fn load_file_as( &self, branch: &str, base: Option<&str>, path: &str, mode: LoadMode, actor_id: Option<&str>, ) -> Result<LoadResult>
Read a file into memory and delegate to load_as. Used by the
CLI’s omnigraph load so file-path-based writes flow through
the same engine-layer policy gate as in-memory load_as calls.
Auto Trait Implementations§
impl !Freeze for Omnigraph
impl !RefUnwindSafe for Omnigraph
impl !UnwindSafe for Omnigraph
impl Send for Omnigraph
impl Sync for Omnigraph
impl Unpin for Omnigraph
impl UnsafeUnpin for Omnigraph
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> FmtForward for T
impl<T> FmtForward for T
Source§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
self to use its Binary implementation when Debug-formatted.Source§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
self to use its Display implementation when
Debug-formatted.Source§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
Self: LowerExp,
fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
Self: LowerExp,
self to use its LowerExp implementation when
Debug-formatted.Source§fn fmt_lower_hex(self) -> FmtLowerHex<Self>where
Self: LowerHex,
fn fmt_lower_hex(self) -> FmtLowerHex<Self>where
Self: LowerHex,
self to use its LowerHex implementation when
Debug-formatted.Source§fn fmt_octal(self) -> FmtOctal<Self>where
Self: Octal,
fn fmt_octal(self) -> FmtOctal<Self>where
Self: Octal,
self to use its Octal implementation when Debug-formatted.Source§fn fmt_pointer(self) -> FmtPointer<Self>where
Self: Pointer,
fn fmt_pointer(self) -> FmtPointer<Self>where
Self: Pointer,
self to use its Pointer implementation when
Debug-formatted.Source§fn fmt_upper_exp(self) -> FmtUpperExp<Self>where
Self: UpperExp,
fn fmt_upper_exp(self) -> FmtUpperExp<Self>where
Self: UpperExp,
self to use its UpperExp implementation when
Debug-formatted.Source§fn fmt_upper_hex(self) -> FmtUpperHex<Self>where
Self: UpperHex,
fn fmt_upper_hex(self) -> FmtUpperHex<Self>where
Self: UpperHex,
self to use its UpperHex implementation when
Debug-formatted.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreimpl<T> MaybeSend for Twhere
T: Send,
impl<T> MaybeSend for Twhere
T: Send,
Source§impl<D> OwoColorize for D
impl<D> OwoColorize for D
Source§fn fg<C>(&self) -> FgColorDisplay<'_, C, Self>where
C: Color,
fn fg<C>(&self) -> FgColorDisplay<'_, C, Self>where
C: Color,
Source§fn bg<C>(&self) -> BgColorDisplay<'_, C, Self>where
C: Color,
fn bg<C>(&self) -> BgColorDisplay<'_, C, Self>where
C: Color,
Source§fn black(&self) -> FgColorDisplay<'_, Black, Self>
fn black(&self) -> FgColorDisplay<'_, Black, Self>
Source§fn on_black(&self) -> BgColorDisplay<'_, Black, Self>
fn on_black(&self) -> BgColorDisplay<'_, Black, Self>
Source§fn red(&self) -> FgColorDisplay<'_, Red, Self>
fn red(&self) -> FgColorDisplay<'_, Red, Self>
Source§fn on_red(&self) -> BgColorDisplay<'_, Red, Self>
fn on_red(&self) -> BgColorDisplay<'_, Red, Self>
Source§fn green(&self) -> FgColorDisplay<'_, Green, Self>
fn green(&self) -> FgColorDisplay<'_, Green, Self>
Source§fn on_green(&self) -> BgColorDisplay<'_, Green, Self>
fn on_green(&self) -> BgColorDisplay<'_, Green, Self>
Source§fn yellow(&self) -> FgColorDisplay<'_, Yellow, Self>
fn yellow(&self) -> FgColorDisplay<'_, Yellow, Self>
Source§fn on_yellow(&self) -> BgColorDisplay<'_, Yellow, Self>
fn on_yellow(&self) -> BgColorDisplay<'_, Yellow, Self>
Source§fn blue(&self) -> FgColorDisplay<'_, Blue, Self>
fn blue(&self) -> FgColorDisplay<'_, Blue, Self>
Source§fn on_blue(&self) -> BgColorDisplay<'_, Blue, Self>
fn on_blue(&self) -> BgColorDisplay<'_, Blue, Self>
Source§fn magenta(&self) -> FgColorDisplay<'_, Magenta, Self>
fn magenta(&self) -> FgColorDisplay<'_, Magenta, Self>
Source§fn on_magenta(&self) -> BgColorDisplay<'_, Magenta, Self>
fn on_magenta(&self) -> BgColorDisplay<'_, Magenta, Self>
Source§fn purple(&self) -> FgColorDisplay<'_, Magenta, Self>
fn purple(&self) -> FgColorDisplay<'_, Magenta, Self>
Source§fn on_purple(&self) -> BgColorDisplay<'_, Magenta, Self>
fn on_purple(&self) -> BgColorDisplay<'_, Magenta, Self>
Source§fn cyan(&self) -> FgColorDisplay<'_, Cyan, Self>
fn cyan(&self) -> FgColorDisplay<'_, Cyan, Self>
Source§fn on_cyan(&self) -> BgColorDisplay<'_, Cyan, Self>
fn on_cyan(&self) -> BgColorDisplay<'_, Cyan, Self>
Source§fn white(&self) -> FgColorDisplay<'_, White, Self>
fn white(&self) -> FgColorDisplay<'_, White, Self>
Source§fn on_white(&self) -> BgColorDisplay<'_, White, Self>
fn on_white(&self) -> BgColorDisplay<'_, White, Self>
Source§fn default_color(&self) -> FgColorDisplay<'_, Default, Self>
fn default_color(&self) -> FgColorDisplay<'_, Default, Self>
Source§fn on_default_color(&self) -> BgColorDisplay<'_, Default, Self>
fn on_default_color(&self) -> BgColorDisplay<'_, Default, Self>
Source§fn bright_black(&self) -> FgColorDisplay<'_, BrightBlack, Self>
fn bright_black(&self) -> FgColorDisplay<'_, BrightBlack, Self>
Source§fn on_bright_black(&self) -> BgColorDisplay<'_, BrightBlack, Self>
fn on_bright_black(&self) -> BgColorDisplay<'_, BrightBlack, Self>
Source§fn bright_red(&self) -> FgColorDisplay<'_, BrightRed, Self>
fn bright_red(&self) -> FgColorDisplay<'_, BrightRed, Self>
Source§fn on_bright_red(&self) -> BgColorDisplay<'_, BrightRed, Self>
fn on_bright_red(&self) -> BgColorDisplay<'_, BrightRed, Self>
Source§fn bright_green(&self) -> FgColorDisplay<'_, BrightGreen, Self>
fn bright_green(&self) -> FgColorDisplay<'_, BrightGreen, Self>
Source§fn on_bright_green(&self) -> BgColorDisplay<'_, BrightGreen, Self>
fn on_bright_green(&self) -> BgColorDisplay<'_, BrightGreen, Self>
Source§fn bright_yellow(&self) -> FgColorDisplay<'_, BrightYellow, Self>
fn bright_yellow(&self) -> FgColorDisplay<'_, BrightYellow, Self>
Source§fn on_bright_yellow(&self) -> BgColorDisplay<'_, BrightYellow, Self>
fn on_bright_yellow(&self) -> BgColorDisplay<'_, BrightYellow, Self>
Source§fn bright_blue(&self) -> FgColorDisplay<'_, BrightBlue, Self>
fn bright_blue(&self) -> FgColorDisplay<'_, BrightBlue, Self>
Source§fn on_bright_blue(&self) -> BgColorDisplay<'_, BrightBlue, Self>
fn on_bright_blue(&self) -> BgColorDisplay<'_, BrightBlue, Self>
Source§fn bright_magenta(&self) -> FgColorDisplay<'_, BrightMagenta, Self>
fn bright_magenta(&self) -> FgColorDisplay<'_, BrightMagenta, Self>
Source§fn on_bright_magenta(&self) -> BgColorDisplay<'_, BrightMagenta, Self>
fn on_bright_magenta(&self) -> BgColorDisplay<'_, BrightMagenta, Self>
Source§fn bright_purple(&self) -> FgColorDisplay<'_, BrightMagenta, Self>
fn bright_purple(&self) -> FgColorDisplay<'_, BrightMagenta, Self>
Source§fn on_bright_purple(&self) -> BgColorDisplay<'_, BrightMagenta, Self>
fn on_bright_purple(&self) -> BgColorDisplay<'_, BrightMagenta, Self>
Source§fn bright_cyan(&self) -> FgColorDisplay<'_, BrightCyan, Self>
fn bright_cyan(&self) -> FgColorDisplay<'_, BrightCyan, Self>
Source§fn on_bright_cyan(&self) -> BgColorDisplay<'_, BrightCyan, Self>
fn on_bright_cyan(&self) -> BgColorDisplay<'_, BrightCyan, Self>
Source§fn bright_white(&self) -> FgColorDisplay<'_, BrightWhite, Self>
fn bright_white(&self) -> FgColorDisplay<'_, BrightWhite, Self>
Source§fn on_bright_white(&self) -> BgColorDisplay<'_, BrightWhite, Self>
fn on_bright_white(&self) -> BgColorDisplay<'_, BrightWhite, Self>
Source§fn bold(&self) -> BoldDisplay<'_, Self>
fn bold(&self) -> BoldDisplay<'_, Self>
Source§fn dimmed(&self) -> DimDisplay<'_, Self>
fn dimmed(&self) -> DimDisplay<'_, Self>
Source§fn italic(&self) -> ItalicDisplay<'_, Self>
fn italic(&self) -> ItalicDisplay<'_, Self>
Source§fn underline(&self) -> UnderlineDisplay<'_, Self>
fn underline(&self) -> UnderlineDisplay<'_, Self>
Source§fn blink(&self) -> BlinkDisplay<'_, Self>
fn blink(&self) -> BlinkDisplay<'_, Self>
Source§fn blink_fast(&self) -> BlinkFastDisplay<'_, Self>
fn blink_fast(&self) -> BlinkFastDisplay<'_, Self>
Source§fn reversed(&self) -> ReversedDisplay<'_, Self>
fn reversed(&self) -> ReversedDisplay<'_, Self>
Source§fn strikethrough(&self) -> StrikeThroughDisplay<'_, Self>
fn strikethrough(&self) -> StrikeThroughDisplay<'_, Self>
Source§fn color<Color>(&self, color: Color) -> FgDynColorDisplay<'_, Color, Self>where
Color: DynColor,
fn color<Color>(&self, color: Color) -> FgDynColorDisplay<'_, Color, Self>where
Color: DynColor,
OwoColorize::fg or
a color-specific method, such as OwoColorize::green, Read moreSource§fn on_color<Color>(&self, color: Color) -> BgDynColorDisplay<'_, Color, Self>where
Color: DynColor,
fn on_color<Color>(&self, color: Color) -> BgDynColorDisplay<'_, Color, Self>where
Color: DynColor,
OwoColorize::bg or
a color-specific method, such as OwoColorize::on_yellow, Read moreSource§fn fg_rgb<const R: u8, const G: u8, const B: u8>(
&self,
) -> FgColorDisplay<'_, CustomColor<R, G, B>, Self>
fn fg_rgb<const R: u8, const G: u8, const B: u8>( &self, ) -> FgColorDisplay<'_, CustomColor<R, G, B>, Self>
Source§fn bg_rgb<const R: u8, const G: u8, const B: u8>(
&self,
) -> BgColorDisplay<'_, CustomColor<R, G, B>, Self>
fn bg_rgb<const R: u8, const G: u8, const B: u8>( &self, ) -> BgColorDisplay<'_, CustomColor<R, G, B>, Self>
Source§fn truecolor(&self, r: u8, g: u8, b: u8) -> FgDynColorDisplay<'_, Rgb, Self>
fn truecolor(&self, r: u8, g: u8, b: u8) -> FgDynColorDisplay<'_, Rgb, Self>
Source§fn on_truecolor(&self, r: u8, g: u8, b: u8) -> BgDynColorDisplay<'_, Rgb, Self>
fn on_truecolor(&self, r: u8, g: u8, b: u8) -> BgDynColorDisplay<'_, Rgb, Self>
Source§impl<T> Pipe for Twhere
T: ?Sized,
impl<T> Pipe for Twhere
T: ?Sized,
Source§fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> Rwhere
Self: Sized,
fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> Rwhere
Self: Sized,
Source§fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> Rwhere
R: 'a,
fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> Rwhere
R: 'a,
self and passes that borrow into the pipe function. Read moreSource§fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> Rwhere
R: 'a,
fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> Rwhere
R: 'a,
self and passes that borrow into the pipe function. Read moreSource§fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
Source§fn pipe_borrow_mut<'a, B, R>(
&'a mut self,
func: impl FnOnce(&'a mut B) -> R,
) -> R
fn pipe_borrow_mut<'a, B, R>( &'a mut self, func: impl FnOnce(&'a mut B) -> R, ) -> R
Source§fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
self, then passes self.as_ref() into the pipe function.Source§fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
self, then passes self.as_mut() into the pipe
function.Source§fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
self, then passes self.deref() into the pipe function.Source§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<T> Tap for T
impl<T> Tap for T
Source§fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
Borrow<B> of a value. Read moreSource§fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
BorrowMut<B> of a value. Read moreSource§fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
AsRef<R> view of a value. Read moreSource§fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
AsMut<R> view of a value. Read moreSource§fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
Deref::Target of a value. Read moreSource§fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
Deref::Target of a value. Read moreSource§fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self
fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self
.tap() only in debug builds, and is erased in release builds.Source§fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self
fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self
.tap_mut() only in debug builds, and is erased in release
builds.Source§fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
.tap_borrow() only in debug builds, and is erased in release
builds.Source§fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
.tap_borrow_mut() only in debug builds, and is erased in release
builds.Source§fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
.tap_ref() only in debug builds, and is erased in release
builds.Source§fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
.tap_ref_mut() only in debug builds, and is erased in release
builds.Source§fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
.tap_deref() only in debug builds, and is erased in release
builds.