Warn about undocumented public items of voelin-ui-vm

#![warn(missing_docs)] on the crate, with the fields and variants that had
no docs documented (BBCode styles and spans, settings, the tree's input) and
a targeted allow on the two mirror modules, bridge and studio_bridge, whose
fields are those of the Slint structs and are explained by the comments in
bridge.slint and studio-bridge.slint.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
faumarayandClaude Sonnet 5.5 committed 2026-10-21 05:55:24 +03:00
1 parent 12b2773791
commit 0672b21758
11 files changed
+61 -2

No files matched your search

+15 -1
View File
@@ -36,9 +36,13 @@ pub const MAX_RUNS: usize = 1500;
/// How a span of text looks.
#[derive(Clone, Debug, Default, PartialEq, Eq)]
pub struct Style {
/// Bold (`[b]`).
pub bold: bool,
/// Italic (`[i]`).
pub italic: bool,
/// Underlined (`[u]`).
pub underline: bool,
/// Struck through (`[s]`).
pub strike: bool,
/// Code: on a background.
pub code: bool,
@@ -51,12 +55,16 @@ pub struct Style {
/// A piece of a block.
#[derive(Clone, Debug, PartialEq, Eq)]
pub enum Span {
/// Text with one style.
Text {
/// The characters.
text: String,
/// How they look.
style: Style,
},
/// A picture at an address (`[img]…[/img]`).
Image {
/// Where the picture is.
url: String,
},
}
@@ -68,7 +76,10 @@ pub enum BlockKind {
Text,
/// A line of a quote; the first names who said it (`[quote=Name]`), when
/// the quote does.
Quote { author: String },
Quote {
/// Who said it, empty when the quote does not say.
author: String,
},
/// Code: all its lines in one span.
Code,
/// An item of a list.
@@ -80,13 +91,16 @@ pub enum BlockKind {
/// A line, a quote's line, code, a list item or a rule.
#[derive(Clone, Debug, PartialEq, Eq)]
pub struct Block {
/// What the block is.
pub kind: BlockKind,
/// Its pieces, left to right.
pub spans: Vec<Span>,
}
/// A message's text: its blocks, top to bottom.
#[derive(Clone, Debug, Default, PartialEq, Eq)]
pub struct Doc {
/// The lines, quotes, code and rules in order.
pub blocks: Vec<Block>,
}