pub struct CoreRepository;Expand description
Repository for installed package operations.
Implementations§
Source§impl CoreRepository
impl CoreRepository
Sourcepub fn list_all(conn: &mut SqliteConnection) -> QueryResult<Vec<Package>>
pub fn list_all(conn: &mut SqliteConnection) -> QueryResult<Vec<Package>>
Lists all installed packages.
Sourcepub fn list_filtered(
conn: &mut SqliteConnection,
repo_name: Option<&str>,
pkg_name: Option<&str>,
pkg_id: Option<&str>,
version: Option<&str>,
is_installed: Option<bool>,
pinned: Option<bool>,
limit: Option<i64>,
sort_by_id: Option<SortDirection>,
) -> QueryResult<Vec<InstalledPackageWithPortable>>
pub fn list_filtered( conn: &mut SqliteConnection, repo_name: Option<&str>, pkg_name: Option<&str>, pkg_id: Option<&str>, version: Option<&str>, is_installed: Option<bool>, pinned: Option<bool>, limit: Option<i64>, sort_by_id: Option<SortDirection>, ) -> QueryResult<Vec<InstalledPackageWithPortable>>
Lists installed packages with flexible filtering.
Sourcepub fn list_broken(
conn: &mut SqliteConnection,
) -> QueryResult<Vec<InstalledPackageWithPortable>>
pub fn list_broken( conn: &mut SqliteConnection, ) -> QueryResult<Vec<InstalledPackageWithPortable>>
Lists broken packages (is_installed = false).
Sourcepub fn list_updatable(
conn: &mut SqliteConnection,
) -> QueryResult<Vec<InstalledPackageWithPortable>>
pub fn list_updatable( conn: &mut SqliteConnection, ) -> QueryResult<Vec<InstalledPackageWithPortable>>
Lists installed packages that are not pinned (for updates).
Sourcepub fn find_exact(
conn: &mut SqliteConnection,
repo_name: &str,
pkg_name: &str,
pkg_id: &str,
version: &str,
) -> QueryResult<Option<InstalledPackageWithPortable>>
pub fn find_exact( conn: &mut SqliteConnection, repo_name: &str, pkg_name: &str, pkg_id: &str, version: &str, ) -> QueryResult<Option<InstalledPackageWithPortable>>
Finds an installed package by exact match on repo_name, pkg_name, pkg_id, and version.
Sourcepub fn list_all_with_portable(
conn: &mut SqliteConnection,
) -> QueryResult<Vec<InstalledPackageWithPortable>>
pub fn list_all_with_portable( conn: &mut SqliteConnection, ) -> QueryResult<Vec<InstalledPackageWithPortable>>
Lists all installed packages with portable configuration.
Sourcepub fn list_by_repo(
conn: &mut SqliteConnection,
repo_name: &str,
) -> QueryResult<Vec<Package>>
pub fn list_by_repo( conn: &mut SqliteConnection, repo_name: &str, ) -> QueryResult<Vec<Package>>
Lists installed packages filtered by repo_name.
Sourcepub fn list_by_repo_with_portable(
conn: &mut SqliteConnection,
repo_name: &str,
) -> QueryResult<Vec<InstalledPackageWithPortable>>
pub fn list_by_repo_with_portable( conn: &mut SqliteConnection, repo_name: &str, ) -> QueryResult<Vec<InstalledPackageWithPortable>>
Lists installed packages filtered by repo_name with portable configuration.
Sourcepub fn count(conn: &mut SqliteConnection) -> QueryResult<i64>
pub fn count(conn: &mut SqliteConnection) -> QueryResult<i64>
Counts installed packages.
Sourcepub fn count_distinct_installed(
conn: &mut SqliteConnection,
repo_name: Option<&str>,
) -> QueryResult<i64>
pub fn count_distinct_installed( conn: &mut SqliteConnection, repo_name: Option<&str>, ) -> QueryResult<i64>
Counts distinct installed packages.
Sourcepub fn find_by_id(
conn: &mut SqliteConnection,
id: i32,
) -> QueryResult<Option<Package>>
pub fn find_by_id( conn: &mut SqliteConnection, id: i32, ) -> QueryResult<Option<Package>>
Finds an installed package by ID.
Sourcepub fn find_by_id_with_portable(
conn: &mut SqliteConnection,
id: i32,
) -> QueryResult<Option<InstalledPackageWithPortable>>
pub fn find_by_id_with_portable( conn: &mut SqliteConnection, id: i32, ) -> QueryResult<Option<InstalledPackageWithPortable>>
Finds an installed package by ID with portable configuration.
Sourcepub fn find_by_name(
conn: &mut SqliteConnection,
name: &str,
) -> QueryResult<Vec<Package>>
pub fn find_by_name( conn: &mut SqliteConnection, name: &str, ) -> QueryResult<Vec<Package>>
Finds installed packages by name.
Sourcepub fn find_by_name_with_portable(
conn: &mut SqliteConnection,
name: &str,
) -> QueryResult<Vec<InstalledPackageWithPortable>>
pub fn find_by_name_with_portable( conn: &mut SqliteConnection, name: &str, ) -> QueryResult<Vec<InstalledPackageWithPortable>>
Finds installed packages by name with portable configuration.
Sourcepub fn find_alternates(
conn: &mut SqliteConnection,
pkg_name: &str,
exclude_pkg_id: &str,
exclude_version: &str,
) -> QueryResult<Vec<InstalledPackageWithPortable>>
pub fn find_alternates( conn: &mut SqliteConnection, pkg_name: &str, exclude_pkg_id: &str, exclude_version: &str, ) -> QueryResult<Vec<InstalledPackageWithPortable>>
Finds installed packages by name, excluding specific pkg_id and version.
Sourcepub fn find_by_pkg_id_and_repo(
conn: &mut SqliteConnection,
pkg_id: &str,
repo_name: &str,
) -> QueryResult<Option<Package>>
pub fn find_by_pkg_id_and_repo( conn: &mut SqliteConnection, pkg_id: &str, repo_name: &str, ) -> QueryResult<Option<Package>>
Finds an installed package by pkg_id and repo_name.
Sourcepub fn find_by_pkg_id_name_and_repo(
conn: &mut SqliteConnection,
pkg_id: &str,
pkg_name: &str,
repo_name: &str,
) -> QueryResult<Option<Package>>
pub fn find_by_pkg_id_name_and_repo( conn: &mut SqliteConnection, pkg_id: &str, pkg_name: &str, repo_name: &str, ) -> QueryResult<Option<Package>>
Finds an installed package by pkg_id, pkg_name, and repo_name.
Sourcepub fn insert(
conn: &mut SqliteConnection,
package: &NewPackage<'_>,
) -> QueryResult<i32>
pub fn insert( conn: &mut SqliteConnection, package: &NewPackage<'_>, ) -> QueryResult<i32>
Inserts a new installed package and returns the inserted ID.
Sourcepub fn update_version(
conn: &mut SqliteConnection,
id: i32,
new_version: &str,
) -> QueryResult<usize>
pub fn update_version( conn: &mut SqliteConnection, id: i32, new_version: &str, ) -> QueryResult<usize>
Updates an installed package’s version.
Sourcepub fn record_installation(
conn: &mut SqliteConnection,
repo_name: &str,
pkg_name: &str,
pkg_id: &str,
version: &str,
size: i64,
provides: Option<Vec<PackageProvide>>,
checksum: Option<&str>,
installed_date: &str,
installed_path: &str,
) -> QueryResult<Option<i32>>
pub fn record_installation( conn: &mut SqliteConnection, repo_name: &str, pkg_name: &str, pkg_id: &str, version: &str, size: i64, provides: Option<Vec<PackageProvide>>, checksum: Option<&str>, installed_date: &str, installed_path: &str, ) -> QueryResult<Option<i32>>
Updates an installed package after successful installation. Only updates the record with is_installed=false (the newly created one).
Sourcepub fn set_pinned(
conn: &mut SqliteConnection,
id: i32,
pinned: bool,
) -> QueryResult<usize>
pub fn set_pinned( conn: &mut SqliteConnection, id: i32, pinned: bool, ) -> QueryResult<usize>
Sets the pinned status of a package.
Sourcepub fn set_unlinked(
conn: &mut SqliteConnection,
id: i32,
unlinked: bool,
) -> QueryResult<usize>
pub fn set_unlinked( conn: &mut SqliteConnection, id: i32, unlinked: bool, ) -> QueryResult<usize>
Sets the unlinked status of a package.
Sourcepub fn unlink_others(
conn: &mut SqliteConnection,
pkg_name: &str,
keep_pkg_id: &str,
keep_version: &str,
) -> QueryResult<usize>
pub fn unlink_others( conn: &mut SqliteConnection, pkg_name: &str, keep_pkg_id: &str, keep_version: &str, ) -> QueryResult<usize>
Unlinks all packages with a given name except those matching pkg_id and version.
Sourcepub fn update_pkg_id(
conn: &mut SqliteConnection,
repo_name: &str,
old_pkg_id: &str,
new_pkg_id: &str,
) -> QueryResult<usize>
pub fn update_pkg_id( conn: &mut SqliteConnection, repo_name: &str, old_pkg_id: &str, new_pkg_id: &str, ) -> QueryResult<usize>
Updates the pkg_id for packages matching repo_name and old pkg_id.
Sourcepub fn delete(conn: &mut SqliteConnection, id: i32) -> QueryResult<usize>
pub fn delete(conn: &mut SqliteConnection, id: i32) -> QueryResult<usize>
Deletes an installed package by ID.
Sourcepub fn has_pending_install(
conn: &mut SqliteConnection,
pkg_id: &str,
pkg_name: &str,
repo_name: &str,
version: &str,
) -> QueryResult<bool>
pub fn has_pending_install( conn: &mut SqliteConnection, pkg_id: &str, pkg_name: &str, repo_name: &str, version: &str, ) -> QueryResult<bool>
Checks if a pending install (is_installed=false) exists for a specific package version. Used to check if we can resume a partial install.
Sourcepub fn delete_pending_installs(
conn: &mut SqliteConnection,
pkg_id: &str,
pkg_name: &str,
repo_name: &str,
) -> QueryResult<Vec<String>>
pub fn delete_pending_installs( conn: &mut SqliteConnection, pkg_id: &str, pkg_name: &str, repo_name: &str, ) -> QueryResult<Vec<String>>
Deletes pending (is_installed=false) records for a package and returns their paths. Used to clean up orphaned partial installs before starting a new install.
Sourcepub fn get_portable(
conn: &mut SqliteConnection,
package_id: i32,
) -> QueryResult<Option<PortablePackage>>
pub fn get_portable( conn: &mut SqliteConnection, package_id: i32, ) -> QueryResult<Option<PortablePackage>>
Gets the portable package configuration for a package.
Sourcepub fn insert_portable(
conn: &mut SqliteConnection,
portable: &NewPortablePackage<'_>,
) -> QueryResult<usize>
pub fn insert_portable( conn: &mut SqliteConnection, portable: &NewPortablePackage<'_>, ) -> QueryResult<usize>
Inserts portable package configuration.
Sourcepub fn upsert_portable(
conn: &mut SqliteConnection,
package_id: i32,
portable_path: Option<&str>,
portable_home: Option<&str>,
portable_config: Option<&str>,
portable_share: Option<&str>,
portable_cache: Option<&str>,
) -> QueryResult<usize>
pub fn upsert_portable( conn: &mut SqliteConnection, package_id: i32, portable_path: Option<&str>, portable_home: Option<&str>, portable_config: Option<&str>, portable_share: Option<&str>, portable_cache: Option<&str>, ) -> QueryResult<usize>
Updates or inserts portable package configuration.
Sourcepub fn delete_portable(
conn: &mut SqliteConnection,
package_id: i32,
) -> QueryResult<usize>
pub fn delete_portable( conn: &mut SqliteConnection, package_id: i32, ) -> QueryResult<usize>
Deletes portable package configuration.
Sourcepub fn get_old_package_paths(
conn: &mut SqliteConnection,
pkg_id: &str,
pkg_name: &str,
repo_name: &str,
force: bool,
) -> QueryResult<Vec<(i32, String)>>
pub fn get_old_package_paths( conn: &mut SqliteConnection, pkg_id: &str, pkg_name: &str, repo_name: &str, force: bool, ) -> QueryResult<Vec<(i32, String)>>
Gets old package versions (all except the newest one) for cleanup.
Returns the installed paths of packages to remove.
If force is true, includes pinned packages. Otherwise only unpinned packages.
Sourcepub fn delete_old_packages(
conn: &mut SqliteConnection,
pkg_id: &str,
pkg_name: &str,
repo_name: &str,
force: bool,
) -> QueryResult<usize>
pub fn delete_old_packages( conn: &mut SqliteConnection, pkg_id: &str, pkg_name: &str, repo_name: &str, force: bool, ) -> QueryResult<usize>
Deletes old package versions (all except the newest one).
If force is true, deletes pinned packages too. Otherwise only unpinned packages.
Sourcepub fn unlink_others_by_checksum(
conn: &mut SqliteConnection,
pkg_name: &str,
keep_pkg_id: &str,
keep_checksum: Option<&str>,
) -> QueryResult<usize>
pub fn unlink_others_by_checksum( conn: &mut SqliteConnection, pkg_name: &str, keep_pkg_id: &str, keep_checksum: Option<&str>, ) -> QueryResult<usize>
Unlinks all packages with a given name except those matching pkg_id and checksum. Used when switching between alternate package versions.
Sourcepub fn link_by_checksum(
conn: &mut SqliteConnection,
pkg_name: &str,
pkg_id: &str,
checksum: Option<&str>,
) -> QueryResult<usize>
pub fn link_by_checksum( conn: &mut SqliteConnection, pkg_name: &str, pkg_id: &str, checksum: Option<&str>, ) -> QueryResult<usize>
Links a package by pkg_name, pkg_id, and checksum. Used when switching to an alternate package version.
Auto Trait Implementations§
impl Freeze for CoreRepository
impl RefUnwindSafe for CoreRepository
impl Send for CoreRepository
impl Sync for CoreRepository
impl Unpin for CoreRepository
impl UnwindSafe for CoreRepository
Blanket Implementations§
Source§impl<T> AggregateExpressionMethods for T
impl<T> AggregateExpressionMethods for T
Source§fn aggregate_distinct(self) -> Self::Outputwhere
Self: DistinctDsl,
fn aggregate_distinct(self) -> Self::Outputwhere
Self: DistinctDsl,
DISTINCT modifier for aggregate functions Read moreSource§fn aggregate_all(self) -> Self::Outputwhere
Self: AllDsl,
fn aggregate_all(self) -> Self::Outputwhere
Self: AllDsl,
ALL modifier for aggregate functions Read moreSource§fn aggregate_filter<P>(self, f: P) -> Self::Output
fn aggregate_filter<P>(self, f: P) -> Self::Output
Source§fn aggregate_order<O>(self, o: O) -> Self::Outputwhere
Self: OrderAggregateDsl<O>,
fn aggregate_order<O>(self, o: O) -> Self::Outputwhere
Self: OrderAggregateDsl<O>,
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> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>, which can then be
downcast into Box<dyn ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>, which can then be further
downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> DowncastSend for T
impl<T> DowncastSend for T
Source§impl<T> DowncastSync for T
impl<T> DowncastSync for 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> IntoSql for T
impl<T> IntoSql for T
Source§fn into_sql<T>(self) -> Self::Expression
fn into_sql<T>(self) -> Self::Expression
self to an expression for Diesel’s query builder. Read moreSource§fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expression
fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expression
&self to an expression for Diesel’s query builder. 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