pub struct CheckRef<'c, 'i, Split: SplitStrategy> {
pub(crate) top: &'c Checker<Split>,
pub(crate) context: ContextWrap<'c, 'i>,
pub(crate) proof_state: &'i ProverState,
pub(crate) solutions: MutableRefList<'i, Solutions>,
pub(crate) messages: &'i mut SmallVec<CheckLogCow<'c>, 2>,
pub(crate) cancel: &'i CancelToken<'i, Split::CancelToken>,
pub(crate) added: u8,
pub(crate) traced: bool,
}Fieldsยง
ยงtop: &'c Checker<Split>ยงcontext: ContextWrap<'c, 'i>ยงproof_state: &'i ProverStateยงsolutions: MutableRefList<'i, Solutions>ยงmessages: &'i mut SmallVec<CheckLogCow<'c>, 2>ยงcancel: &'i CancelToken<'i, Split::CancelToken>ยงadded: u8ยงtraced: boolImplementationsยง
Sourceยงimpl<Split: SplitStrategy> CheckRef<'_, '_, Split>
impl<Split: SplitStrategy> CheckRef<'_, '_, Split>
Sourcepub(crate) fn get_declaration<T: IsDeclaration>(
&self,
uri: &SymbolUri,
) -> Result<SharedDeclaration<T>, ()>
pub(crate) fn get_declaration<T: IsDeclaration>( &self, uri: &SymbolUri, ) -> Result<SharedDeclaration<T>, ()>
ยงErrors
Sourcepub(crate) fn get_symbol(
&self,
uri: &SymbolUri,
) -> Result<SharedDeclaration<Symbol>, ()>
pub(crate) fn get_symbol( &self, uri: &SymbolUri, ) -> Result<SharedDeclaration<Symbol>, ()>
ยงErrors
pub(crate) fn get_symbol_type(&mut self, uri: &SymbolUri) -> Option<Term>
pub(crate) fn get_symbol_definiens(&mut self, uri: &SymbolUri) -> Option<Term>
Sourcepub fn get_variable(
&self,
uri: &DocumentElementUri,
) -> Result<SharedDocumentElement<VariableDeclaration>, ()>
pub fn get_variable( &self, uri: &DocumentElementUri, ) -> Result<SharedDocumentElement<VariableDeclaration>, ()>
ยงErrors
pub(crate) fn get_var_definiens(&mut self, var: &Variable) -> Option<Term>
Sourceยงimpl<'t, Split: SplitStrategy> CheckRef<'t, '_, Split>
impl<'t, Split: SplitStrategy> CheckRef<'t, '_, Split>
pub fn check_equality(&mut self, lhs: &'t Term, rhs: &'t Term) -> Option<bool>
pub(crate) fn check_equality_i( &mut self, lhs: &'t Term, rhs: &'t Term, ) -> Option<bool>
fn congruence(&mut self, lhs: &'t Term, rhs: &'t Term) -> Option<bool>
fn congruence_i(&mut self, lhs: &'t Term, rhs: &'t Term) -> Option<bool>
fn congruence_cont(&mut self, lhs: &'t Term, rhs: &'t Term) -> Option<bool>
fn congruence_app( &mut self, lhs: &'t ApplicationTerm, rhs: &'t ApplicationTerm, ) -> Option<bool>
fn congruence_bind( &mut self, lhs: &'t BindingTerm, rhs: &'t BindingTerm, ) -> Option<bool>
Sourceยงimpl<'t, Split: SplitStrategy> CheckRef<'t, '_, Split>
impl<'t, Split: SplitStrategy> CheckRef<'t, '_, Split>
pub fn infer_type(&mut self, t: &'t Term) -> Option<Term>
pub(crate) fn infer_type_i(&mut self, t: &'t Term) -> Option<Term>
pub fn infer_var_type(&mut self, var: &'t Variable) -> Option<Term>
pub(crate) fn infer_var_type_i(&mut self, var: &Variable) -> Option<Term>
Sourceยงimpl<Split: SplitStrategy> CheckRef<'_, '_, Split>
impl<Split: SplitStrategy> CheckRef<'_, '_, Split>
pub const fn rules(&self) -> &RuleSet<Split>
pub(crate) fn prepare( &self, t: Term, path: Option<&mut TermPath>, ) -> (Solutions, Term)
pub(crate) fn revert_prepare(&self, t: Term) -> Term
pub fn get_head( &self, t: &Term, ) -> Option<Either<SharedDeclaration<Symbol>, SharedDocumentElement<VariableDeclaration>>>
fn push_down_implicits(term: Term) -> Term
fn prepare_i( &mut self, t: Term, path: Option<(&mut SmallVec<u8, 16>, usize)>, ) -> Term
fn revert_i(&mut self, t: Term) -> Term
fn prepare_recurse( &mut self, term: Term, then: fn(&mut CheckRef<'_, '_, Split>, Term, Option<(&mut SmallVec<u8, 16>, usize)>) -> Term, path: Option<(&mut SmallVec<u8, 16>, usize)>, ) -> Term
fn prepare_cv( &mut self, cv: &ComponentVar, then: fn(&mut Self, Term, Option<(&mut SmallVec<u8, 16>, usize)>) -> Term, path: Option<(&mut SmallVec<u8, 16>, usize)>, ) -> ComponentVar
Sourceยงimpl<'t, Split: SplitStrategy> CheckRef<'t, '_, Split>
impl<'t, Split: SplitStrategy> CheckRef<'t, '_, Split>
Sourceยงimpl<'t, Split: SplitStrategy> CheckRef<'t, '_, Split>
impl<'t, Split: SplitStrategy> CheckRef<'t, '_, Split>
pub fn simplify_full(&mut self, expand: bool, term: &'t Term) -> Option<Term>
fn simplify_full_first( &mut self, expand: bool, term: &'t Term, recursion_limit: &mut usize, total_limit: &mut usize, ) -> Option<Cow<'t, Term>>
fn simplify_full_i( &mut self, expand: bool, term: &'t Term, recursion_limit: &mut usize, total_limit: &mut usize, ) -> Option<Term>
pub fn simplify_until( &mut self, term: &'t Term, until: impl FnMut(&Self, &Term) -> bool, ) -> Option<Cow<'t, Term>>
fn simplify_until_i( &mut self, term: &'t Term, until: impl FnMut(&Self, &Term) -> bool, recursion_limit: &mut usize, total_limit: &mut usize, ) -> Option<Cow<'t, Term>>
pub(crate) fn simplify_rules<Rl: CheckerRule + ?Sized, R>( &mut self, rules: &'t [Box<Rl>], term: &'t Term, applicable: impl Fn(&Rl, &Term) -> bool, apply: impl for<'s> Fn(CheckRef<'s, '_, Split>, &Rl, &'s Term) -> Option<R> + Send + Sync, ) -> Option<R>
pub(crate) fn simplify_until_two( &mut self, term1: &'t Term, term2: &'t Term, until: impl FnMut(&Self, &Term, &Term) -> bool, ) -> Option<(Cow<'t, Term>, Cow<'t, Term>)>
pub(crate) fn simplify_rules_two<Rl: CheckerRule + ?Sized + 'static, R>( &mut self, rules: &'t [Box<Rl>], term1: &'t Term, term2: &'t Term, applicable: impl Fn(&CheckRef<'_, '_, Split>, &Rl, &Term, &Term) -> bool, apply: impl for<'s> Fn(CheckRef<'s, '_, Split>, &Rl, &'s Term, &'s Term) -> Option<R> + Sync, abort: impl Fn(&Term, &Term) -> bool + Send + Sync, ) -> Either<Option<R>, (Term, Term)>
fn simplify_one(&mut self, expand: bool, term: &'t Term) -> Option<Term>
fn simplify_one_i(&mut self, expand: bool, term: &'t Term) -> Option<Term>
pub(crate) fn simplify_implicit(&mut self, term: &'t Term) -> Option<Term>
fn simplify_one_default(&mut self, expand: bool, term: &'t Term) -> Option<Term>
fn arg_full( &mut self, expand: bool, arg: &'t Argument, recursion_limit: &mut usize, total_limit: &mut usize, ) -> Option<Argument>
fn bound_arg_full( &mut self, expand: bool, arg: &'t BoundArgument, recusion_limit: &mut usize, total_limit: &mut usize, ) -> Option<BoundArgument>
fn cv_full( &mut self, expand: bool, arg: &'t ComponentVar, recursion_limit: &mut usize, total_limit: &mut usize, ) -> Option<ComponentVar>
Sourceยงimpl<Split: SplitStrategy> CheckRef<'_, '_, Split>
impl<Split: SplitStrategy> CheckRef<'_, '_, Split>
pub fn new_solvable(&mut self) -> Term
pub(crate) fn solve_equality( &mut self, unk: &Id, solution: &Term, ) -> Option<bool>
pub(crate) fn solve_upper_bound( &mut self, unk: &Id, bound: &Term, ) -> Option<bool>
pub(crate) fn solve_lower_bound( &mut self, unk: &Id, bound: &Term, ) -> Option<bool>
pub(crate) fn merge_solutions(&mut self, solutions: Solutions)
fn add_solvable(&mut self, name: Id)
pub fn get_solution(&self, name: &Id) -> Option<Term>
fn get_solvable<'s>(&'s self, name: &Id) -> Option<&'s Solvable>
pub(crate) fn get_solvable_type(&mut self, name: &Id) -> Term
fn solve(&mut self, name: Id, solution: Term) -> Option<()>
fn solve_type(&mut self, name: Id, tp: Term)
pub(crate) fn subst(&self, term: Term) -> Term
Sourceยงimpl<'t, Split: SplitStrategy> CheckRef<'t, '_, Split>
impl<'t, Split: SplitStrategy> CheckRef<'t, '_, Split>
pub fn check_type(&mut self, tm: &'t Term, tp: &'t Term) -> Option<bool>
pub fn check_subtype(&mut self, sub: &'t Term, sup: &'t Term) -> Option<bool>
pub fn check_inhabitable(&mut self, t: &'t Term) -> Option<bool>
pub fn check_universe(&mut self, t: &'t Term) -> Option<bool>
pub(crate) fn check_type_i( &mut self, tm: &'t Term, tp: &'t Term, ) -> Option<bool>
pub(crate) fn check_subtype_i( &mut self, sub: &'t Term, sup: &'t Term, ) -> Option<bool>
pub(crate) fn check_inhabitable_i(&mut self, tm: &'t Term) -> Option<bool>
fn check_universe_i(&mut self, tm: &'t Term) -> Option<bool>
Sourceยงimpl<'c, 'i, Split: SplitStrategy> CheckRef<'c, 'i, Split>
impl<'c, 'i, Split: SplitStrategy> CheckRef<'c, 'i, Split>
pub fn extend_context<C: CowLike<'c>>(&mut self, var: C)
pub fn add_msg(&mut self, line: CheckLogCow<'c>)
pub fn comment(&mut self, msg: impl Into<Cow<'static, str>>)
pub fn counter(&mut self, msg: &'static str, num: usize)
pub fn failure(&mut self, msg: impl Into<Cow<'static, str>>)
pub(crate) fn split(&mut self) -> (&[Cow<'c, ComponentVar>], Trace<'c, '_>)
pub fn iter_context(&self) -> impl ExactSizeIterator<Item = &ComponentVar>
pub(crate) fn traced<R: Clone>( &mut self, tsk: CheckingTask<'c>, f: impl FnOnce(&mut Self) -> Option<R>, ) -> Result<R, RefCheckLog<'c>>
pub(crate) fn untraced<R: Clone>( &mut self, task: CheckingTask<'c>, f: impl FnOnce(&mut Self) -> Option<R>, ) -> Option<R>
pub(crate) fn traced_inner<R: Clone>( &mut self, task: CheckingTask<'c>, f: impl FnOnce(&mut Self) -> Option<R>, ) -> (Option<R>, RefCheckLog<'c>)
pub const fn depth(&self) -> usize
pub(crate) fn branch_traced<R: Clone>( &mut self, task: CheckingTask<'c>, f: impl FnOnce(CheckRef<'c, '_, Split>) -> Option<R>, ) -> Result<R, RefCheckLog<'c>>
pub fn scoped<'nt, R: Send + Sync + 'static>( &'nt mut self, f: impl FnOnce(&mut CheckRef<'nt, '_, Split>) -> R, ) -> R
pub(crate) fn copied(&self) -> CheckRefBranch<'c, 'i, Split>
pub(crate) fn cancellable<R: Send>( &mut self, f: impl FnOnce(&mut Self) -> R, ) -> R
pub(crate) fn wrap_check<R: Clone>( &mut self, task: CheckingTask<'c>, f: impl FnOnce(&mut Self) -> Option<R>, ) -> Option<R>
Sourceยงimpl<Split: SplitStrategy> CheckRef<'_, '_, Split>
impl<Split: SplitStrategy> CheckRef<'_, '_, Split>
pub fn facts_for( &self, goal: &Term, ) -> impl Iterator<Item = (GlobalOrLocal, Vec<GoalPremise>)>
Trait Implementationsยง
Sourceยงimpl<Split: SplitStrategy> Drop for CheckRef<'_, '_, Split>
impl<Split: SplitStrategy> Drop for CheckRef<'_, '_, Split>
Auto Trait Implementationsยง
impl<'c, 'i, Split> Freeze for CheckRef<'c, 'i, Split>
impl<'c, 'i, Split> !RefUnwindSafe for CheckRef<'c, 'i, Split>
impl<'c, 'i, Split> Send for CheckRef<'c, 'i, Split>
impl<'c, 'i, Split> Sync for CheckRef<'c, 'i, Split>
impl<'c, 'i, Split> Unpin for CheckRef<'c, 'i, Split>
impl<'c, 'i, Split> UnsafeUnpin for CheckRef<'c, 'i, Split>
impl<'c, 'i, Split> !UnwindSafe for CheckRef<'c, 'i, Split>
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
Mutably borrows from an owned value. Read more
ยงimpl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
ยงfn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Converts
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>, which can then be
downcast into Box<dyn ConcreteType> where ConcreteType implements Trait.ยงfn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Converts
Rc<Trait> (where Trait: Downcast) to Rc<Any>, which can then be further
downcast into Rc<ConcreteType> where ConcreteType implements Trait.ยงfn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Converts
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Anyโs vtable from &Traitโs.ยงfn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Converts
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Anyโs vtable from &mut Traitโs.ยงimpl<T> DowncastSend for T
impl<T> DowncastSend for T
ยงimpl<T> DowncastSync for T
impl<T> DowncastSync for T
ยงimpl<E, T, Request, Encoding> FromReq<Patch<Encoding>, Request, E> for Twhere
Request: Req<E> + Send + 'static,
Encoding: Decodes<T>,
E: FromServerFnError,
impl<E, T, Request, Encoding> FromReq<Patch<Encoding>, Request, E> for Twhere
Request: Req<E> + Send + 'static,
Encoding: Decodes<T>,
E: FromServerFnError,
ยงimpl<E, T, Request, Encoding> FromReq<Post<Encoding>, Request, E> for Twhere
Request: Req<E> + Send + 'static,
Encoding: Decodes<T>,
E: FromServerFnError,
impl<E, T, Request, Encoding> FromReq<Post<Encoding>, Request, E> for Twhere
Request: Req<E> + Send + 'static,
Encoding: Decodes<T>,
E: FromServerFnError,
ยงimpl<E, T, Request, Encoding> FromReq<Put<Encoding>, Request, E> for Twhere
Request: Req<E> + Send + 'static,
Encoding: Decodes<T>,
E: FromServerFnError,
impl<E, T, Request, Encoding> FromReq<Put<Encoding>, Request, E> for Twhere
Request: Req<E> + Send + 'static,
Encoding: Decodes<T>,
E: FromServerFnError,
ยงimpl<E, Encoding, Response, T> FromRes<Patch<Encoding>, Response, E> for Twhere
Response: ClientRes<E> + Send,
Encoding: Decodes<T>,
E: FromServerFnError,
impl<E, Encoding, Response, T> FromRes<Patch<Encoding>, Response, E> for Twhere
Response: ClientRes<E> + Send,
Encoding: Decodes<T>,
E: FromServerFnError,
ยงimpl<E, Encoding, Response, T> FromRes<Post<Encoding>, Response, E> for Twhere
Response: ClientRes<E> + Send,
Encoding: Decodes<T>,
E: FromServerFnError,
impl<E, Encoding, Response, T> FromRes<Post<Encoding>, Response, E> for Twhere
Response: ClientRes<E> + Send,
Encoding: Decodes<T>,
E: FromServerFnError,
ยงimpl<E, Encoding, Response, T> FromRes<Put<Encoding>, Response, E> for Twhere
Response: ClientRes<E> + Send,
Encoding: Decodes<T>,
E: FromServerFnError,
impl<E, Encoding, Response, T> FromRes<Put<Encoding>, Response, E> for Twhere
Response: ClientRes<E> + Send,
Encoding: Decodes<T>,
E: FromServerFnError,
ยงimpl<T> Instrument for T
impl<T> Instrument for T
ยงfn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
ยง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>
Converts
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>
Converts
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 moreยงimpl<E, T, Encoding, Request> IntoReq<Patch<Encoding>, Request, E> for Twhere
Request: ClientReq<E>,
Encoding: Encodes<T>,
E: FromServerFnError,
impl<E, T, Encoding, Request> IntoReq<Patch<Encoding>, Request, E> for Twhere
Request: ClientReq<E>,
Encoding: Encodes<T>,
E: FromServerFnError,
ยงimpl<E, T, Encoding, Request> IntoReq<Post<Encoding>, Request, E> for Twhere
Request: ClientReq<E>,
Encoding: Encodes<T>,
E: FromServerFnError,
impl<E, T, Encoding, Request> IntoReq<Post<Encoding>, Request, E> for Twhere
Request: ClientReq<E>,
Encoding: Encodes<T>,
E: FromServerFnError,
ยงimpl<E, T, Encoding, Request> IntoReq<Put<Encoding>, Request, E> for Twhere
Request: ClientReq<E>,
Encoding: Encodes<T>,
E: FromServerFnError,
impl<E, T, Encoding, Request> IntoReq<Put<Encoding>, Request, E> for Twhere
Request: ClientReq<E>,
Encoding: Encodes<T>,
E: FromServerFnError,
ยงimpl<E, Response, Encoding, T> IntoRes<Patch<Encoding>, Response, E> for T
impl<E, Response, Encoding, T> IntoRes<Patch<Encoding>, Response, E> for T
ยงimpl<E, Response, Encoding, T> IntoRes<Post<Encoding>, Response, E> for T
impl<E, Response, Encoding, T> IntoRes<Post<Encoding>, Response, E> for T
ยงimpl<E, Response, Encoding, T> IntoRes<Put<Encoding>, Response, E> for T
impl<E, Response, Encoding, T> IntoRes<Put<Encoding>, Response, E> for T
ยงimpl<D> OwoColorize for D
impl<D> OwoColorize for D
ยงfn fg<C>(&self) -> FgColorDisplay<'_, C, Self>where
C: Color,
fn fg<C>(&self) -> FgColorDisplay<'_, C, Self>where
C: Color,
Set the foreground color generically Read more
ยงfn bg<C>(&self) -> BgColorDisplay<'_, C, Self>where
C: Color,
fn bg<C>(&self) -> BgColorDisplay<'_, C, Self>where
C: Color,
Set the background color generically. Read more
ยงfn on_magenta(&self) -> BgColorDisplay<'_, Magenta, Self>
fn on_magenta(&self) -> BgColorDisplay<'_, Magenta, Self>
Change the background color to magenta
ยงfn default_color(&self) -> FgColorDisplay<'_, Default, Self>
fn default_color(&self) -> FgColorDisplay<'_, Default, Self>
Change the foreground color to the terminal default
ยงfn on_default_color(&self) -> BgColorDisplay<'_, Default, Self>
fn on_default_color(&self) -> BgColorDisplay<'_, Default, Self>
Change the background color to the terminal default
ยงfn bright_black(&self) -> FgColorDisplay<'_, BrightBlack, Self>
fn bright_black(&self) -> FgColorDisplay<'_, BrightBlack, Self>
Change the foreground color to bright black
ยงfn on_bright_black(&self) -> BgColorDisplay<'_, BrightBlack, Self>
fn on_bright_black(&self) -> BgColorDisplay<'_, BrightBlack, Self>
Change the background color to bright black
ยงfn bright_red(&self) -> FgColorDisplay<'_, BrightRed, Self>
fn bright_red(&self) -> FgColorDisplay<'_, BrightRed, Self>
Change the foreground color to bright red
ยงfn on_bright_red(&self) -> BgColorDisplay<'_, BrightRed, Self>
fn on_bright_red(&self) -> BgColorDisplay<'_, BrightRed, Self>
Change the background color to bright red
ยงfn bright_green(&self) -> FgColorDisplay<'_, BrightGreen, Self>
fn bright_green(&self) -> FgColorDisplay<'_, BrightGreen, Self>
Change the foreground color to bright green
ยงfn on_bright_green(&self) -> BgColorDisplay<'_, BrightGreen, Self>
fn on_bright_green(&self) -> BgColorDisplay<'_, BrightGreen, Self>
Change the background color to bright green
ยงfn bright_yellow(&self) -> FgColorDisplay<'_, BrightYellow, Self>
fn bright_yellow(&self) -> FgColorDisplay<'_, BrightYellow, Self>
Change the foreground color to bright yellow
ยงfn on_bright_yellow(&self) -> BgColorDisplay<'_, BrightYellow, Self>
fn on_bright_yellow(&self) -> BgColorDisplay<'_, BrightYellow, Self>
Change the background color to bright yellow
ยงfn bright_blue(&self) -> FgColorDisplay<'_, BrightBlue, Self>
fn bright_blue(&self) -> FgColorDisplay<'_, BrightBlue, Self>
Change the foreground color to bright blue
ยงfn on_bright_blue(&self) -> BgColorDisplay<'_, BrightBlue, Self>
fn on_bright_blue(&self) -> BgColorDisplay<'_, BrightBlue, Self>
Change the background color to bright blue
ยงfn bright_magenta(&self) -> FgColorDisplay<'_, BrightMagenta, Self>
fn bright_magenta(&self) -> FgColorDisplay<'_, BrightMagenta, Self>
Change the foreground color to bright magenta
ยงfn on_bright_magenta(&self) -> BgColorDisplay<'_, BrightMagenta, Self>
fn on_bright_magenta(&self) -> BgColorDisplay<'_, BrightMagenta, Self>
Change the background color to bright magenta
ยงfn bright_purple(&self) -> FgColorDisplay<'_, BrightMagenta, Self>
fn bright_purple(&self) -> FgColorDisplay<'_, BrightMagenta, Self>
Change the foreground color to bright purple
ยงfn on_bright_purple(&self) -> BgColorDisplay<'_, BrightMagenta, Self>
fn on_bright_purple(&self) -> BgColorDisplay<'_, BrightMagenta, Self>
Change the background color to bright purple
ยงfn bright_cyan(&self) -> FgColorDisplay<'_, BrightCyan, Self>
fn bright_cyan(&self) -> FgColorDisplay<'_, BrightCyan, Self>
Change the foreground color to bright cyan
ยงfn on_bright_cyan(&self) -> BgColorDisplay<'_, BrightCyan, Self>
fn on_bright_cyan(&self) -> BgColorDisplay<'_, BrightCyan, Self>
Change the background color to bright cyan
ยงfn bright_white(&self) -> FgColorDisplay<'_, BrightWhite, Self>
fn bright_white(&self) -> FgColorDisplay<'_, BrightWhite, Self>
Change the foreground color to bright white
ยงfn on_bright_white(&self) -> BgColorDisplay<'_, BrightWhite, Self>
fn on_bright_white(&self) -> BgColorDisplay<'_, BrightWhite, Self>
Change the background color to bright white
ยงfn blink_fast(&self) -> BlinkFastDisplay<'_, Self>
fn blink_fast(&self) -> BlinkFastDisplay<'_, Self>
Make the text blink (but fast!)
Hide the text
ยงfn strikethrough(&self) -> StrikeThroughDisplay<'_, Self>
fn strikethrough(&self) -> StrikeThroughDisplay<'_, Self>
Cross out the text
ยงfn color<Color>(&self, color: Color) -> FgDynColorDisplay<'_, Color, Self>where
Color: DynColor,
fn color<Color>(&self, color: Color) -> FgDynColorDisplay<'_, Color, Self>where
Color: DynColor,
Set the foreground color at runtime. Only use if you do not know which color will be used at
compile-time. If the color is constant, use either [
OwoColorize::fg] or
a color-specific method, such as [OwoColorize::green], Read moreยง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,
Set the background color at runtime. Only use if you do not know what color to use at
compile-time. If the color is constant, use either [
OwoColorize::bg] or
a color-specific method, such as [OwoColorize::on_yellow], Read moreยง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>
Set the foreground color to a specific RGB value.
ยง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>
Set the background color to a specific RGB value.
ยงfn truecolor(&self, r: u8, g: u8, b: u8) -> FgDynColorDisplay<'_, Rgb, Self>
fn truecolor(&self, r: u8, g: u8, b: u8) -> FgDynColorDisplay<'_, Rgb, Self>
Sets the foreground color to an RGB value.
ยง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>
Sets the background color to an RGB value.
ยงfn if_supports_color<'a, Out, ApplyFn>(
&'a self,
stream: impl Into<Stream>,
apply: ApplyFn,
) -> SupportsColorsDisplay<'a, Self, Out, ApplyFn>where
ApplyFn: Fn(&'a Self) -> Out,
fn if_supports_color<'a, Out, ApplyFn>(
&'a self,
stream: impl Into<Stream>,
apply: ApplyFn,
) -> SupportsColorsDisplay<'a, Self, Out, ApplyFn>where
ApplyFn: Fn(&'a Self) -> Out,
Apply a given transformation function to all formatters if the given stream
supports at least basic ANSI colors, allowing you to conditionally apply
given styles/colors. Read more
ยงimpl<T> Pointable for T
impl<T> Pointable for T
ยงimpl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
ยงimpl<T> SerializableKey for T
impl<T> SerializableKey for T
ยงimpl<T> StorageAccess<T> for T
impl<T> StorageAccess<T> for T
ยงfn as_borrowed(&self) -> &T
fn as_borrowed(&self) -> &T
Borrows the value.
ยงfn into_taken(self) -> T
fn into_taken(self) -> T
Takes the value.