pub struct ServerWrapper<T: FLAMSLSPServer> {
pub inner: T,
}Fieldsยง
ยงinner: TImplementationsยง
Sourceยงimpl<T: FLAMSLSPServer> ServerWrapper<T>
impl<T: FLAMSLSPServer> ServerWrapper<T>
pub(crate) fn html_request( &mut self, params: UriParams, ) -> BoxFuture<'static, Result<Option<String>, ResponseError>>
pub(crate) fn new_archive( &mut self, _: NewArchiveParams, ) -> <Self as LanguageServer>::NotifyResult
pub(crate) fn export_html( &mut self, params: StandaloneExportParams, ) -> <Self as LanguageServer>::NotifyResult
pub(crate) fn export_standalone( &mut self, params: StandaloneExportParams, ) -> <Self as LanguageServer>::NotifyResult
pub(crate) fn quiz_request( &mut self, params: UriParams, ) -> BoxFuture<'static, Result<String, ResponseError>>
fn build( doc: &LSPDocument, uri: &impl Display, stale_only: bool, ) -> Result<(), String>
pub(crate) fn build_one( &mut self, params: UriParams, ) -> BoxFuture<'static, Result<(), ResponseError>>
pub(crate) fn build_all( &mut self, params: UriParams, ) -> BoxFuture<'static, Result<(), ResponseError>>
pub(crate) fn reload( &mut self, _: ReloadParams, ) -> <Self as LanguageServer>::NotifyResult
pub(crate) fn install( &mut self, params: InstallParams, ) -> <Self as LanguageServer>::NotifyResult
fn update_backend( files: impl Iterator<Item = PathBuf>, ) -> <Self as LanguageServer>::NotifyResult
Sourceยงimpl<T: FLAMSLSPServer> ServerWrapper<T>
impl<T: FLAMSLSPServer> ServerWrapper<T>
pub const fn new(inner: T) -> Self
pub fn router(self) -> Router<Self>
pub fn get_progress(&self, tk: ProgressToken) -> ProgressCallbackClient
Trait Implementationsยง
Sourceยงimpl<T: FLAMSLSPServer> LanguageServer for ServerWrapper<T>
impl<T: FLAMSLSPServer> LanguageServer for ServerWrapper<T>
Sourceยงtype Error = ResponseError
type Error = ResponseError
Should always be defined to [
ResponseError] for user implementations.Sourceยงtype NotifyResult = ControlFlow<Result<(), Error>>
type NotifyResult = ControlFlow<Result<(), Error>>
Should always be defined to
ControlFlow<Result<()>> for user implementations.fn initialize( &mut self, params: InitializeParams, ) -> BoxFuture<'static, Result<InitializeResult, ResponseError>>
fn shutdown(&mut self, (): ()) -> BoxFuture<'static, Result<(), ResponseError>>
fn initialized(&mut self, _params: InitializedParams) -> Self::NotifyResult
fn exit(&mut self, params: <Exit as Notification>::Params) -> Self::NotifyResult
fn did_change_workspace_folders( &mut self, params: <DidChangeWorkspaceFolders as Notification>::Params, ) -> Self::NotifyResult
fn did_change_configuration( &mut self, params: <DidChangeConfiguration as Notification>::Params, ) -> Self::NotifyResult
fn did_change_watched_files( &mut self, params: <DidChangeWatchedFiles as Notification>::Params, ) -> Self::NotifyResult
fn did_open(&mut self, params: DidOpenTextDocumentParams) -> Self::NotifyResult
fn did_change( &mut self, params: DidChangeTextDocumentParams, ) -> Self::NotifyResult
fn did_save(&mut self, params: DidSaveTextDocumentParams) -> Self::NotifyResult
fn will_save( &mut self, params: <WillSaveTextDocument as Notification>::Params, ) -> Self::NotifyResult
fn did_close( &mut self, params: DidCloseTextDocumentParams, ) -> Self::NotifyResult
fn work_done_progress_cancel( &mut self, params: <WorkDoneProgressCancel as Notification>::Params, ) -> Self::NotifyResult
fn set_trace( &mut self, params: <SetTrace as Notification>::Params, ) -> Self::NotifyResult
fn cancel_request( &mut self, params: <Cancel as Notification>::Params, ) -> Self::NotifyResult
fn progress( &mut self, params: <Progress as Notification>::Params, ) -> Self::NotifyResult
fn document_symbol( &mut self, params: DocumentSymbolParams, ) -> BoxFuture<'static, Result<Option<DocumentSymbolResponse>, ResponseError>>
fn document_diagnostic( &mut self, params: DocumentDiagnosticParams, ) -> BoxFuture<'static, Result<DocumentDiagnosticReportResult, ResponseError>>
fn references( &mut self, params: ReferenceParams, ) -> BoxFuture<'static, Result<Option<Vec<Location>>, ResponseError>>
fn document_link( &mut self, params: DocumentLinkParams, ) -> BoxFuture<'static, Result<Option<Vec<DocumentLink>>, ResponseError>>
fn hover( &mut self, params: HoverParams, ) -> BoxFuture<'static, Result<Option<Hover>, ResponseError>>
fn definition( &mut self, params: GotoDefinitionParams, ) -> BoxFuture<'static, Result<Option<GotoDefinitionResponse>, ResponseError>>
fn code_lens( &mut self, params: <CodeLensRequest as Request>::Params, ) -> BoxFuture<'static, Result<<CodeLensRequest as Request>::Result, ResponseError>>
fn declaration( &mut self, params: <GotoDefinition as Request>::Params, ) -> BoxFuture<'static, Result<<GotoDefinition as Request>::Result, ResponseError>>
fn workspace_diagnostic( &mut self, params: <WorkspaceDiagnosticRequest as Request>::Params, ) -> BoxFuture<'static, Result<<WorkspaceDiagnosticRequest as Request>::Result, ResponseError>>
fn inlay_hint( &mut self, params: InlayHintParams, ) -> BoxFuture<'static, Result<Option<Vec<InlayHint>>, ResponseError>>
fn inlay_hint_resolve( &mut self, params: <InlayHintResolveRequest as Request>::Params, ) -> BoxFuture<'static, Result<<InlayHintResolveRequest as Request>::Result, ResponseError>>
fn code_action( &mut self, params: CodeActionParams, ) -> BoxFuture<'static, Result<Option<CodeActionResponse>, ResponseError>>
fn prepare_call_hierarchy( &mut self, params: CallHierarchyPrepareParams, ) -> BoxFuture<'static, Result<Option<Vec<CallHierarchyItem>>, ResponseError>>
fn incoming_calls( &mut self, params: CallHierarchyIncomingCallsParams, ) -> BoxFuture<'static, Result<Option<Vec<CallHierarchyIncomingCall>>, ResponseError>>
fn outgoing_calls( &mut self, params: <CallHierarchyOutgoingCalls as Request>::Params, ) -> BoxFuture<'static, Result<<CallHierarchyOutgoingCalls as Request>::Result, ResponseError>>
fn document_highlight( &mut self, params: <DocumentHighlightRequest as Request>::Params, ) -> BoxFuture<'static, Result<<DocumentHighlightRequest as Request>::Result, ResponseError>>
fn folding_range( &mut self, params: <FoldingRangeRequest as Request>::Params, ) -> BoxFuture<'static, Result<<FoldingRangeRequest as Request>::Result, ResponseError>>
fn implementation( &mut self, params: <GotoImplementation as Request>::Params, ) -> BoxFuture<'static, Result<<GotoImplementation as Request>::Result, ResponseError>>
fn type_definition( &mut self, params: <GotoTypeDefinition as Request>::Params, ) -> BoxFuture<'static, Result<<GotoTypeDefinition as Request>::Result, ResponseError>>
fn document_color( &mut self, params: <DocumentColor as Request>::Params, ) -> BoxFuture<'static, Result<<DocumentColor as Request>::Result, ResponseError>>
fn color_presentation( &mut self, params: <ColorPresentationRequest as Request>::Params, ) -> BoxFuture<'static, Result<<ColorPresentationRequest as Request>::Result, ResponseError>>
fn selection_range( &mut self, params: <SelectionRangeRequest as Request>::Params, ) -> BoxFuture<'static, Result<<SelectionRangeRequest as Request>::Result, ResponseError>>
fn moniker( &mut self, params: <MonikerRequest as Request>::Params, ) -> BoxFuture<'static, Result<<MonikerRequest as Request>::Result, ResponseError>>
fn inline_value( &mut self, params: <InlineValueRequest as Request>::Params, ) -> BoxFuture<'static, Result<<InlineValueRequest as Request>::Result, ResponseError>>
fn on_type_formatting( &mut self, params: <OnTypeFormatting as Request>::Params, ) -> BoxFuture<'static, Result<<OnTypeFormatting as Request>::Result, ResponseError>>
fn range_formatting( &mut self, params: <RangeFormatting as Request>::Params, ) -> BoxFuture<'static, Result<<RangeFormatting as Request>::Result, ResponseError>>
fn formatting( &mut self, params: <Formatting as Request>::Params, ) -> BoxFuture<'static, Result<<Formatting as Request>::Result, ResponseError>>
fn prepare_type_hierarchy( &mut self, params: <TypeHierarchyPrepare as Request>::Params, ) -> BoxFuture<'static, Result<<TypeHierarchyPrepare as Request>::Result, ResponseError>>
fn will_save_wait_until( &mut self, params: <WillSaveWaitUntil as Request>::Params, ) -> BoxFuture<'static, Result<<WillSaveWaitUntil as Request>::Result, ResponseError>>
fn completion( &mut self, params: <Completion as Request>::Params, ) -> BoxFuture<'static, Result<<Completion as Request>::Result, ResponseError>>
fn signature_help( &mut self, params: <SignatureHelpRequest as Request>::Params, ) -> BoxFuture<'static, Result<<SignatureHelpRequest as Request>::Result, ResponseError>>
fn linked_editing_range( &mut self, params: <LinkedEditingRange as Request>::Params, ) -> BoxFuture<'static, Result<<LinkedEditingRange as Request>::Result, ResponseError>>
fn semantic_tokens_full( &mut self, params: SemanticTokensParams, ) -> BoxFuture<'static, Result<Option<SemanticTokensResult>, ResponseError>>
fn semantic_tokens_range( &mut self, params: SemanticTokensRangeParams, ) -> BoxFuture<'static, Result<Option<SemanticTokensRangeResult>, ResponseError>>
fn semantic_tokens_full_delta( &mut self, params: SemanticTokensDeltaParams, ) -> BoxFuture<'static, Result<Option<SemanticTokensFullDeltaResult>, ResponseError>>
fn did_create_files(&mut self, params: CreateFilesParams) -> Self::NotifyResult
fn did_rename_files(&mut self, params: RenameFilesParams) -> Self::NotifyResult
fn did_delete_files(&mut self, params: DeleteFilesParams) -> Self::NotifyResult
fn prepare_rename( &mut self, params: <PrepareRenameRequest as Request>::Params, ) -> BoxFuture<'static, Result<<PrepareRenameRequest as Request>::Result, ResponseError>>
fn rename( &mut self, params: <Rename as Request>::Params, ) -> BoxFuture<'static, Result<<Rename as Request>::Result, ResponseError>>
fn will_create_files( &mut self, params: <WillCreateFiles as Request>::Params, ) -> BoxFuture<'static, Result<<WillCreateFiles as Request>::Result, ResponseError>>
fn will_rename_files( &mut self, params: <WillRenameFiles as Request>::Params, ) -> BoxFuture<'static, Result<<WillRenameFiles as Request>::Result, ResponseError>>
fn will_delete_files( &mut self, params: <WillDeleteFiles as Request>::Params, ) -> BoxFuture<'static, Result<<WillDeleteFiles as Request>::Result, ResponseError>>
fn symbol( &mut self, params: <WorkspaceSymbolRequest as Request>::Params, ) -> BoxFuture<'static, Result<<WorkspaceSymbolRequest as Request>::Result, ResponseError>>
fn execute_command( &mut self, params: <ExecuteCommand as Request>::Params, ) -> BoxFuture<'static, Result<<ExecuteCommand as Request>::Result, ResponseError>>
fn supertypes( &mut self, params: <TypeHierarchySupertypes as Request>::Params, ) -> BoxFuture<'static, Result<<TypeHierarchySupertypes as Request>::Result, ResponseError>>
fn subtypes( &mut self, params: <TypeHierarchySubtypes as Request>::Params, ) -> BoxFuture<'static, Result<<TypeHierarchySubtypes as Request>::Result, ResponseError>>
fn completion_item_resolve( &mut self, params: <ResolveCompletionItem as Request>::Params, ) -> BoxFuture<'static, Result<<ResolveCompletionItem as Request>::Result, ResponseError>>
fn code_action_resolve( &mut self, params: <CodeActionResolveRequest as Request>::Params, ) -> BoxFuture<'static, Result<<CodeActionResolveRequest as Request>::Result, ResponseError>>
fn workspace_symbol_resolve( &mut self, params: <WorkspaceSymbolResolve as Request>::Params, ) -> BoxFuture<'static, Result<<WorkspaceSymbolResolve as Request>::Result, ResponseError>>
fn code_lens_resolve( &mut self, params: <CodeLensResolve as Request>::Params, ) -> BoxFuture<'static, Result<<CodeLensResolve as Request>::Result, ResponseError>>
fn document_link_resolve( &mut self, params: <DocumentLinkResolve as Request>::Params, ) -> BoxFuture<'static, Result<<DocumentLinkResolve as Request>::Result, ResponseError>>
Auto Trait Implementationsยง
impl<T> Freeze for ServerWrapper<T>where
T: Freeze,
impl<T> RefUnwindSafe for ServerWrapper<T>where
T: RefUnwindSafe,
impl<T> Send for ServerWrapper<T>where
T: Send,
impl<T> Sync for ServerWrapper<T>where
T: Sync,
impl<T> Unpin for ServerWrapper<T>where
T: Unpin,
impl<T> UnsafeUnpin for ServerWrapper<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for ServerWrapper<T>where
T: UnwindSafe,
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 moreSourceยงimpl<ET, Err, A> IntoErr<ET, Err> for Awhere
ET: EngineTypes,
Err: From<A>,
impl<ET, Err, A> IntoErr<ET, Err> for Awhere
ET: EngineTypes,
Err: From<A>,
ยง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,
Available on crate feature
supports-colors only.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.