pub struct RusticRepo<P>(pub Repository<P, ()>);
Tuple Fields§
§0: Repository<P, ()>
Implementations§
Source§impl<P: Clone + ProgressBars> RusticRepo<P>
impl<P: Clone + ProgressBars> RusticRepo<P>
pub fn open(self) -> Result<Repository<P, OpenStatus>>
fn open_or_init_repository_with( self, do_init: bool, init: impl FnOnce(Self) -> Result<Repository<P, OpenStatus>>, ) -> Result<Repository<P, OpenStatus>>
fn indexed(self) -> Result<Repository<P, IndexedStatus<FullIndex, OpenStatus>>>
Methods from Deref<Target = Repository<P, ()>>§
Sourcepub fn password(&self) -> Result<Option<String>, Box<RusticError>>
pub fn password(&self) -> Result<Option<String>, Box<RusticError>>
Evaluates the password given by the repository options
§Errors
- If opening the password file failed
- If reading the password failed
- If splitting the password command failed
- If parsing the password command failed
- If reading the password from the command failed
§Returns
The password or None
if no password is given
Sourcepub fn infos_files(&self) -> Result<RepoFileInfos, Box<RusticError>>
pub fn infos_files(&self) -> Result<RepoFileInfos, Box<RusticError>>
Sourcepub fn warm_up(
&self,
packs: impl ExactSizeIterator<Item = PackId>,
) -> Result<(), Box<RusticError>>
pub fn warm_up( &self, packs: impl ExactSizeIterator<Item = PackId>, ) -> Result<(), Box<RusticError>>
Sourcepub fn warm_up_wait(
&self,
packs: impl ExactSizeIterator<Item = PackId>,
) -> Result<(), Box<RusticError>>
pub fn warm_up_wait( &self, packs: impl ExactSizeIterator<Item = PackId>, ) -> Result<(), Box<RusticError>>
Sourcepub fn add_key(
&self,
pass: &str,
opts: &KeyOptions,
) -> Result<KeyId, Box<RusticError>>
pub fn add_key( &self, pass: &str, opts: &KeyOptions, ) -> Result<KeyId, Box<RusticError>>
Sourcepub fn apply_config(
&self,
opts: &ConfigOptions,
) -> Result<bool, Box<RusticError>>
pub fn apply_config( &self, opts: &ConfigOptions, ) -> Result<bool, Box<RusticError>>
Update the repository config by applying the given ConfigOptions
§Arguments
opts
- The options to apply
§Errors
- If the version is not supported
- If the version is lower than the current version
- If compression is set for a v1 repo
- If the compression level is not supported
- If the size is too large
- If the min pack size tolerance percent is wrong
- If the max pack size tolerance percent is wrong
- If the file could not be serialized to json.
Sourcepub fn config(&self) -> &ConfigFile
pub fn config(&self) -> &ConfigFile
Get the repository configuration
Sourcepub fn get_snapshot_group(
&self,
ids: &[String],
group_by: SnapshotGroupCriterion,
filter: impl FnMut(&SnapshotFile) -> bool,
) -> Result<Vec<(SnapshotGroup, Vec<SnapshotFile>)>, Box<RusticError>>
pub fn get_snapshot_group( &self, ids: &[String], group_by: SnapshotGroupCriterion, filter: impl FnMut(&SnapshotFile) -> bool, ) -> Result<Vec<(SnapshotGroup, Vec<SnapshotFile>)>, Box<RusticError>>
Get grouped snapshots.
§Arguments
ids
- The ids of the snapshots to group. If empty, all snapshots are grouped.group_by
- The criterion to group byfilter
- The filter to use
§Errors
§Returns
If ids
are given, this will try to resolve the ids (or latest
with respect to the given filter) and return a single group
If ids
is empty, return and group all snapshots respecting the filter.
Sourcepub fn get_snapshot_from_str(
&self,
id: &str,
filter: impl FnMut(&SnapshotFile) -> bool + Send + Sync,
) -> Result<SnapshotFile, Box<RusticError>>
pub fn get_snapshot_from_str( &self, id: &str, filter: impl FnMut(&SnapshotFile) -> bool + Send + Sync, ) -> Result<SnapshotFile, Box<RusticError>>
Get a single snapshot
§Arguments
id
- The id of the snapshot to getfilter
- The filter to use
§Errors
- If the string is not a valid hexadecimal string
- If no id could be found.
- If the id is not unique.
§Returns
If id
is (part of) an Id
, return this snapshot.
If id
is “latest”, return the latest snapshot respecting the giving filter.
Sourcepub fn get_snapshots<T>(
&self,
ids: &[T],
) -> Result<Vec<SnapshotFile>, Box<RusticError>>
pub fn get_snapshots<T>( &self, ids: &[T], ) -> Result<Vec<SnapshotFile>, Box<RusticError>>
Sourcepub fn update_snapshots<T>(
&self,
current: Vec<SnapshotFile>,
ids: &[T],
) -> Result<Vec<SnapshotFile>, Box<RusticError>>
pub fn update_snapshots<T>( &self, current: Vec<SnapshotFile>, ids: &[T], ) -> Result<Vec<SnapshotFile>, Box<RusticError>>
Sourcepub fn get_all_snapshots(&self) -> Result<Vec<SnapshotFile>, Box<RusticError>>
pub fn get_all_snapshots(&self) -> Result<Vec<SnapshotFile>, Box<RusticError>>
Get all snapshots from the repository
§Errors
Sourcepub fn update_all_snapshots(
&self,
current: Vec<SnapshotFile>,
) -> Result<Vec<SnapshotFile>, Box<RusticError>>
pub fn update_all_snapshots( &self, current: Vec<SnapshotFile>, ) -> Result<Vec<SnapshotFile>, Box<RusticError>>
Sourcepub fn get_matching_snapshots(
&self,
filter: impl FnMut(&SnapshotFile) -> bool,
) -> Result<Vec<SnapshotFile>, Box<RusticError>>
pub fn get_matching_snapshots( &self, filter: impl FnMut(&SnapshotFile) -> bool, ) -> Result<Vec<SnapshotFile>, Box<RusticError>>
Sourcepub fn update_matching_snapshots(
&self,
current: Vec<SnapshotFile>,
filter: impl FnMut(&SnapshotFile) -> bool,
) -> Result<Vec<SnapshotFile>, Box<RusticError>>
pub fn update_matching_snapshots( &self, current: Vec<SnapshotFile>, filter: impl FnMut(&SnapshotFile) -> bool, ) -> Result<Vec<SnapshotFile>, Box<RusticError>>
Sourcepub fn get_forget_snapshots(
&self,
keep: &KeepOptions,
group_by: SnapshotGroupCriterion,
filter: impl FnMut(&SnapshotFile) -> bool,
) -> Result<ForgetGroups, Box<RusticError>>
pub fn get_forget_snapshots( &self, keep: &KeepOptions, group_by: SnapshotGroupCriterion, filter: impl FnMut(&SnapshotFile) -> bool, ) -> Result<ForgetGroups, Box<RusticError>>
Get snapshots to forget depending on the given KeepOptions
§Arguments
keep
- The keep options to usegroup_by
- The criterion to group byfilter
- The filter to use
§Errors
- If keep options are not valid
§Returns
The groups of snapshots to forget
Sourcepub fn relevant_copy_snapshots(
&self,
filter: impl FnMut(&SnapshotFile) -> bool,
snaps: &[SnapshotFile],
) -> Result<Vec<CopySnapshot>, Box<RusticError>>
pub fn relevant_copy_snapshots( &self, filter: impl FnMut(&SnapshotFile) -> bool, snaps: &[SnapshotFile], ) -> Result<Vec<CopySnapshot>, Box<RusticError>>
Sourcepub fn delete_snapshots(
&self,
ids: &[SnapshotId],
) -> Result<(), Box<RusticError>>
pub fn delete_snapshots( &self, ids: &[SnapshotId], ) -> Result<(), Box<RusticError>>
Sourcepub fn save_snapshots(
&self,
snaps: Vec<SnapshotFile>,
) -> Result<(), Box<RusticError>>
pub fn save_snapshots( &self, snaps: Vec<SnapshotFile>, ) -> Result<(), Box<RusticError>>
Sourcepub fn check(&self, opts: CheckOptions) -> Result<(), Box<RusticError>>
pub fn check(&self, opts: CheckOptions) -> Result<(), Box<RusticError>>
Sourcepub fn check_with_trees(
&self,
opts: CheckOptions,
trees: Vec<TreeId>,
) -> Result<(), Box<RusticError>>
pub fn check_with_trees( &self, opts: CheckOptions, trees: Vec<TreeId>, ) -> Result<(), Box<RusticError>>
Sourcepub fn prune_plan(
&self,
opts: &PruneOptions,
) -> Result<PrunePlan, Box<RusticError>>
pub fn prune_plan( &self, opts: &PruneOptions, ) -> Result<PrunePlan, Box<RusticError>>
Sourcepub fn prune(
&self,
opts: &PruneOptions,
prune_plan: PrunePlan,
) -> Result<(), Box<RusticError>>
pub fn prune( &self, opts: &PruneOptions, prune_plan: PrunePlan, ) -> Result<(), Box<RusticError>>
Sourcepub fn infos_index(&self) -> Result<IndexInfos, Box<RusticError>>
pub fn infos_index(&self) -> Result<IndexInfos, Box<RusticError>>
Sourcepub fn stream_files<F>(
&self,
) -> Result<impl Iterator<Item = Result<(<F as RepoFile>::Id, F), Box<RusticError>>>, Box<RusticError>>where
F: RepoFile,
pub fn stream_files<F>(
&self,
) -> Result<impl Iterator<Item = Result<(<F as RepoFile>::Id, F), Box<RusticError>>>, Box<RusticError>>where
F: RepoFile,
Sourcepub fn repair_index(
&self,
opts: &RepairIndexOptions,
dry_run: bool,
) -> Result<(), Box<RusticError>>
pub fn repair_index( &self, opts: &RepairIndexOptions, dry_run: bool, ) -> Result<(), Box<RusticError>>
Sourcepub fn get_index_entry<T>(&self, id: &T) -> Result<IndexEntry, Box<RusticError>>where
T: PackedId,
pub fn get_index_entry<T>(&self, id: &T) -> Result<IndexEntry, Box<RusticError>>where
T: PackedId,
Get the IndexEntry
of the given blob
§Arguments
tpe
- The type of the blobid
- The id of the blob
§Errors
- If the id is not found in the index
Sourcepub fn read_file_at(
&self,
open_file: &OpenFile,
offset: usize,
length: usize,
) -> Result<Bytes, Box<RusticError>>
pub fn read_file_at( &self, open_file: &OpenFile, offset: usize, length: usize, ) -> Result<Bytes, Box<RusticError>>
Reads an opened file at the given position
§Arguments
open_file
- The opened fileoffset
- The offset to start readinglength
- The length to read
§Returns
The read bytes from the given offset and length.
If offset is behind the end of the file, an empty Bytes
is returned.
If length is too large, the result up to the end of the file is returned.
§Errors
Sourcepub fn node_from_path(
&self,
root_tree: TreeId,
path: &Path,
) -> Result<Node, Box<RusticError>>
pub fn node_from_path( &self, root_tree: TreeId, path: &Path, ) -> Result<Node, Box<RusticError>>
Sourcepub fn find_nodes_from_path(
&self,
ids: impl IntoIterator<Item = TreeId>,
path: &Path,
) -> Result<FindNode, Box<RusticError>>
pub fn find_nodes_from_path( &self, ids: impl IntoIterator<Item = TreeId>, path: &Path, ) -> Result<FindNode, Box<RusticError>>
Sourcepub fn find_matching_nodes(
&self,
ids: impl IntoIterator<Item = TreeId>,
matches: &impl Fn(&Path, &Node) -> bool,
) -> Result<FindMatches, Box<RusticError>>
pub fn find_matching_nodes( &self, ids: impl IntoIterator<Item = TreeId>, matches: &impl Fn(&Path, &Node) -> bool, ) -> Result<FindMatches, Box<RusticError>>
Sourcepub fn node_from_snapshot_path(
&self,
snap_path: &str,
filter: impl FnMut(&SnapshotFile) -> bool + Send + Sync,
) -> Result<Node, Box<RusticError>>
pub fn node_from_snapshot_path( &self, snap_path: &str, filter: impl FnMut(&SnapshotFile) -> bool + Send + Sync, ) -> Result<Node, Box<RusticError>>
Get a Node
from a “SNAP[:PATH]” syntax
This parses for a snapshot (using the filter when “latest” is used) and then traverses into the path to get the node.
§Arguments
snap_path
- The path to the snapshotfilter
- The filter to use
§Errors
- If the string is not a valid hexadecimal string
- If no id could be found.
- If the id is not unique.
Sourcepub fn node_from_snapshot_and_path(
&self,
snap: &SnapshotFile,
path: &str,
) -> Result<Node, Box<RusticError>>
pub fn node_from_snapshot_and_path( &self, snap: &SnapshotFile, path: &str, ) -> Result<Node, Box<RusticError>>
Get a Node
from a SnapshotFile
and a path
This traverses into the path to get the node.
§Arguments
snap
- The snapshot to usepath
- The path to the node
§Errors
Sourcepub fn cat_tree(
&self,
snap: &str,
sn_filter: impl FnMut(&SnapshotFile) -> bool + Send + Sync,
) -> Result<Bytes, Box<RusticError>>
pub fn cat_tree( &self, snap: &str, sn_filter: impl FnMut(&SnapshotFile) -> bool + Send + Sync, ) -> Result<Bytes, Box<RusticError>>
Sourcepub fn ls(
&self,
node: &Node,
ls_opts: &TreeStreamerOptions,
) -> Result<impl Iterator<Item = Result<(PathBuf, Node), Box<RusticError>>> + Clone, Box<RusticError>>
pub fn ls( &self, node: &Node, ls_opts: &TreeStreamerOptions, ) -> Result<impl Iterator<Item = Result<(PathBuf, Node), Box<RusticError>>> + Clone, Box<RusticError>>
List the contents of a given Node
§Arguments
node
- The node to listls_opts
- The options to use
§Returns
If node
is a tree node, this will list the content of that tree.
If node
is a file node, this will only return one element.
§Note
The PathBuf
returned will be relative to the given node
.
§Errors
Sourcepub fn restore(
&self,
restore_infos: RestorePlan,
opts: &RestoreOptions,
node_streamer: impl Iterator<Item = Result<(PathBuf, Node), Box<RusticError>>>,
dest: &LocalDestination,
) -> Result<(), Box<RusticError>>
pub fn restore( &self, restore_infos: RestorePlan, opts: &RestoreOptions, node_streamer: impl Iterator<Item = Result<(PathBuf, Node), Box<RusticError>>>, dest: &LocalDestination, ) -> Result<(), Box<RusticError>>
Restore a given RestorePlan
to a local destination
§Arguments
restore_infos
- The restore plan to useopts
- The options to usenode_streamer
- The node streamer to usedest
- The destination to use
§Errors
Sourcepub fn merge_trees(
&self,
trees: &[TreeId],
cmp: &impl Fn(&Node, &Node) -> Ordering,
summary: &mut SnapshotSummary,
) -> Result<TreeId, Box<RusticError>>
pub fn merge_trees( &self, trees: &[TreeId], cmp: &impl Fn(&Node, &Node) -> Ordering, summary: &mut SnapshotSummary, ) -> Result<TreeId, Box<RusticError>>
Merge the given trees.
This method creates needed tree blobs within the repository.
Merge conflicts (identical filenames which do not match) will be resolved using the ordering given by cmp
.
§Arguments
trees
- The trees to mergecmp
- The comparison function to use for merge conflictssummary
- The summary to use
§Errors
§Returns
This method returns the blob [Id
] of the merged tree.
Sourcepub fn merge_snapshots(
&self,
snaps: &[SnapshotFile],
cmp: &impl Fn(&Node, &Node) -> Ordering,
snap: SnapshotFile,
) -> Result<SnapshotFile, Box<RusticError>>
pub fn merge_snapshots( &self, snaps: &[SnapshotFile], cmp: &impl Fn(&Node, &Node) -> Ordering, snap: SnapshotFile, ) -> Result<SnapshotFile, Box<RusticError>>
Merge the given snapshots.
This method will create needed tree blobs within the repository.
Merge conflicts (identical filenames which do not match) will be resolved using the ordering given by cmp
.
§Arguments
snaps
- The snapshots to mergecmp
- The comparison function to use for merge conflictssnap
- The snapshot to save
§Errors
§Returns
This method returns the modified and already saved SnapshotFile
.
Sourcepub fn backup(
&self,
opts: &BackupOptions,
source: &PathList,
snap: SnapshotFile,
) -> Result<SnapshotFile, Box<RusticError>>
pub fn backup( &self, opts: &BackupOptions, source: &PathList, snap: SnapshotFile, ) -> Result<SnapshotFile, Box<RusticError>>
Run a backup of source
using the given options.
You have to give a preflled SnapshotFile
which is modified and saved.
§Arguments
opts
- The options to usesource
- The source to backupsnap
- The snapshot to modify and save
§Errors
§Returns
The saved snapshot.
Sourcepub fn get_blob_cached(
&self,
id: &BlobId,
tpe: BlobType,
) -> Result<Bytes, Box<RusticError>>
pub fn get_blob_cached( &self, id: &BlobId, tpe: BlobType, ) -> Result<Bytes, Box<RusticError>>
Sourcepub fn prepare_restore(
&self,
opts: &RestoreOptions,
node_streamer: impl Iterator<Item = Result<(PathBuf, Node), Box<RusticError>>>,
dest: &LocalDestination,
dry_run: bool,
) -> Result<RestorePlan, Box<RusticError>>
pub fn prepare_restore( &self, opts: &RestoreOptions, node_streamer: impl Iterator<Item = Result<(PathBuf, Node), Box<RusticError>>>, dest: &LocalDestination, dry_run: bool, ) -> Result<RestorePlan, Box<RusticError>>
Prepare the restore.
If dry_run
is set to false, it will also:
- remove existing files from the destination, if
opts.delete
is set to true - create all dirs for the restore
§Arguments
opts
- The options to usenode_streamer
- The node streamer to usedest
- The destination to usedry_run
- If true, only print what would be done
§Errors
- If a directory could not be created.
- If the restore information could not be collected.
§Returns
The restore plan.
Sourcepub fn copy<'a, Q, R>(
&self,
repo_dest: &Repository<Q, R>,
snapshots: impl IntoIterator<Item = &'a SnapshotFile>,
) -> Result<(), Box<RusticError>>where
Q: ProgressBars,
R: IndexedIds,
pub fn copy<'a, Q, R>(
&self,
repo_dest: &Repository<Q, R>,
snapshots: impl IntoIterator<Item = &'a SnapshotFile>,
) -> Result<(), Box<RusticError>>where
Q: ProgressBars,
R: IndexedIds,
Copy the given snapshots
to repo_dest
.
§Type Parameters
Q
- The type of the progress barR
- The type of the index.
§Arguments
repo_dest
- The destination repositorysnapshots
- The snapshots to copy
§Errors
§Note
This command copies snapshots even if they already exist. For already existing snapshots, a copy will be created in the destination repository.
To omit already existing snapshots, use relevant_copy_snapshots
and filter out the non-relevant ones.
Sourcepub fn repair_snapshots(
&self,
opts: &RepairSnapshotsOptions,
snapshots: Vec<SnapshotFile>,
dry_run: bool,
) -> Result<(), Box<RusticError>>
pub fn repair_snapshots( &self, opts: &RepairSnapshotsOptions, snapshots: Vec<SnapshotFile>, dry_run: bool, ) -> Result<(), Box<RusticError>>
Trait Implementations§
Source§impl<P: Debug> Debug for RusticRepo<P>
impl<P: Debug> Debug for RusticRepo<P>
Auto Trait Implementations§
impl<P> Freeze for RusticRepo<P>where
P: Freeze,
impl<P> !RefUnwindSafe for RusticRepo<P>
impl<P> Send for RusticRepo<P>where
P: Send,
impl<P> Sync for RusticRepo<P>where
P: Sync,
impl<P> Unpin for RusticRepo<P>where
P: Unpin,
impl<P> !UnwindSafe for RusticRepo<P>
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
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 moreSource§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 more