diff --git a/examples/vello_editor/src/main.rs b/examples/vello_editor/src/main.rs index 4fc2e071..8d9aef98 100644 --- a/examples/vello_editor/src/main.rs +++ b/examples/vello_editor/src/main.rs @@ -50,7 +50,7 @@ struct SimpleVelloApp<'s> { editor: text::Editor, } -impl<'s> ApplicationHandler for SimpleVelloApp<'s> { +impl ApplicationHandler for SimpleVelloApp<'_> { fn resumed(&mut self, event_loop: &ActiveEventLoop) { let RenderState::Suspended(cached_window) = &mut self.state else { return; diff --git a/parley/src/lib.rs b/parley/src/lib.rs index 6a64bf42..d02ca55c 100644 --- a/parley/src/lib.rs +++ b/parley/src/lib.rs @@ -1,10 +1,10 @@ // Copyright 2021 the Parley Authors // SPDX-License-Identifier: Apache-2.0 OR MIT -//! Rich text layout. +//! Parley is library for rich text layout. //! //! Key types are: -//! - [FontContext] and [LayoutContext] which are global resources which should be shared between all layouts (or at coarse-grained boundaries). +//! - [FontContext] and [LayoutContext] are resources which should be shared globally (or at coarse-grained boundaries). //! - [FontContext] is database of fonts. //! - [LayoutContext] is scratch space that allows for reuse of allocations between layouts. //! - [RangedBuilder] and [TreeBuilder] which are builders for creating a [Layout]. @@ -13,6 +13,7 @@ //! //! They are constructed using the [ranged_builder](LayoutContext::ranged_builder) and [tree_builder](LayoutContext::ranged_builder) on [LayoutContext]. //! - [Layout] which represents styled paragraph(s) of text and can perform shaping, line-breaking, bidi-reordering, and alignment of that text. +//! //! `Layout` supports re-linebreaking and re-aligning many times (in case the width at which wrapping should occur changes). But if the text content or //! the styles applied to that content change then a new `Layout` must be created using a new `RangedBuilder` or `TreeBuilder`. //!