Merge pull request #625 from betrusted-io/modals-refactor

fix cargo doc errors
This commit is contained in:
bunnie 2025-02-22 01:09:55 +08:00 committed by GitHub
commit 8c89189d69
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 6 additions and 4 deletions

View file

@ -65,6 +65,8 @@ cramium-soc = []
precursor = ["blitstr2/precursor"] precursor = ["blitstr2/precursor"]
derive-rkyv = ["rkyv"] derive-rkyv = ["rkyv"]
doc-deps = ["hosted", "blitstr2/hosted"]
std = [ std = [
"derive-rkyv", "derive-rkyv",
"locales", "locales",

View file

@ -67,7 +67,7 @@ pub struct TypesetWord {
/// overall height for the word /// overall height for the word
pub height: isize, pub height: isize,
/// set if this `word` is not drawable, e.g. a newline placeholder. /// set if this `word` is not drawable, e.g. a newline placeholder.
/// *however* the Vec<GlyphSprite> should still be checked for an insertion point, so that /// *however* the `Vec<GlyphSprite>` should still be checked for an insertion point, so that
/// successive newlines properly get their insertion point drawn /// successive newlines properly get their insertion point drawn
pub non_drawable: bool, pub non_drawable: bool,
/// the position in the originating abstract string of the first character in the word /// the position in the originating abstract string of the first character in the word

View file

@ -42,7 +42,7 @@ pub struct TypesetWord {
/// overall height for the word /// overall height for the word
pub height: isize, pub height: isize,
/// set if this `word` is not drawable, e.g. a newline placeholder. /// set if this `word` is not drawable, e.g. a newline placeholder.
/// *however* the Vec<GlyphSprite> should still be checked for an insertion point, so that /// *however* the `Vec<GlyphSprite>` should still be checked for an insertion point, so that
/// successive newlines properly get their insertion point drawn /// successive newlines properly get their insertion point drawn
pub non_drawable: bool, pub non_drawable: bool,
/// the position in the originating abstract string of the first character in the word /// the position in the originating abstract string of the first character in the word
@ -277,7 +277,7 @@ impl Typesetter {
/// the caller must reset the cursor to the desired resume position, otherwise it will pick /// the caller must reset the cursor to the desired resume position, otherwise it will pick
/// up again at the overflow position. /// up again at the overflow position.
/// ///
/// The final Vec::<TypesetWord> is snapped to the top left of the Renderable region. This /// The final `Vec::<TypesetWord>` is snapped to the top left of the Renderable region. This
/// needs to be transformed into the final screen coordinate space before blitting. /// needs to be transformed into the final screen coordinate space before blitting.
pub fn typeset(&mut self, strat: OverflowStrategy) -> ComposedType { pub fn typeset(&mut self, strat: OverflowStrategy) -> ComposedType {
// a composition only lasts as long as the lifetime of this call, and is passed back to the caller // a composition only lasts as long as the lifetime of this call, and is passed back to the caller

View file

@ -42,7 +42,7 @@ renode = ["utralib/renode", "trng", "gam", "tts-frontend"]
cramium-soc = ["utralib/cramium-soc", "cram-hal-service"] cramium-soc = ["utralib/cramium-soc", "cram-hal-service"]
hosted-baosec = ["ux-api/hosted-baosec", "cramium-emu"] hosted-baosec = ["ux-api/hosted-baosec", "cramium-emu"]
board-baosec = ["ux-api/board-baosec"] board-baosec = ["ux-api/board-baosec"]
doc-deps = ["gam"] doc-deps = ["gam", "ux-api/doc-deps"]
tts = [] tts = []
ditherpunk = [] ditherpunk = []