diff options
| author | mat <git@matdoes.dev> | 2025-10-12 23:01:54 +0300 |
|---|---|---|
| committer | mat <git@matdoes.dev> | 2025-10-12 23:01:54 +0300 |
| commit | ee2575794e91b9457a74a95daf1dcc707058cd58 (patch) | |
| tree | df725850ef18ded5ce3f6552e17095d0f704ae84 /azalea-chat/src/component.rs | |
| parent | 1a1402954b07cd77615d0afc026c73b008787f51 (diff) | |
| download | azalea-drasl-ee2575794e91b9457a74a95daf1dcc707058cd58.tar.xz | |
upgrade deps and clean up lots of doc comments
Diffstat (limited to 'azalea-chat/src/component.rs')
| -rw-r--r-- | azalea-chat/src/component.rs | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/azalea-chat/src/component.rs b/azalea-chat/src/component.rs index 87886e96..30b0ed9d 100644 --- a/azalea-chat/src/component.rs +++ b/azalea-chat/src/component.rs @@ -76,19 +76,22 @@ impl FormattedText { /// Render all components into a single `String`, using your custom /// closures to drive styling, text transformation, and final cleanup. /// - /// # Type params + /// # Type parameters + /// /// - `F`: `(running, component, default) -> (prefix, suffix)` for /// per-component styling /// - `S`: `&str -> String` for text tweaks (escaping, mapping, etc.) /// - `C`: `&final_running_style -> String` for any trailing cleanup /// - /// # Args - /// - `style_formatter`: how to open/close each component’s style - /// - `text_formatter`: how to turn raw text into output text + /// # Arguments + /// + /// - `style_formatter`: how to open/close each component's style + /// - `text_formatter`: how to turn raw text into output text /// - `cleanup_formatter`: emit after all components (e.g. reset codes) - /// - `default_style`: where to reset when a component’s `reset` is true + /// - `default_style`: where to reset when a component's `reset` is true /// /// # Example + /// /// ```rust /// use azalea_chat::{FormattedText, DEFAULT_STYLE}; /// use serde::de::Deserialize; |
