Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
hecrj committed Sep 21, 2024
1 parent 5c2f737 commit 1f695ab
Show file tree
Hide file tree
Showing 7 changed files with 28 additions and 20 deletions.
8 changes: 5 additions & 3 deletions iced/widget/markdown/enum.Item.html

Large diffs are not rendered by default.

10 changes: 6 additions & 4 deletions iced/widget/markdown/struct.Text.html

Large diffs are not rendered by default.

8 changes: 5 additions & 3 deletions iced_widget/markdown/enum.Item.html

Large diffs are not rendered by default.

10 changes: 6 additions & 4 deletions iced_widget/markdown/struct.Text.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion search-index.js

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions src/iced_widget/markdown.rs.html
Original file line number Diff line number Diff line change
Expand Up @@ -773,7 +773,7 @@
<span class="kw">use crate</span>::{column, container, rich_text, row, scrollable, span, text};

<span class="kw">use </span>std::cell::{Cell, RefCell};
<span class="kw">use </span>std::rc::Rc;
<span class="kw">use </span>std::sync::Arc;

<span class="kw">pub use </span>core::text::Highlight;
<span class="kw">pub use </span>pulldown_cmark::HeadingLevel;
Expand Down Expand Up @@ -804,7 +804,7 @@
</span><span class="kw">pub struct </span>Text {
spans: Vec&lt;Span&gt;,
last_style: Cell&lt;<span class="prelude-ty">Option</span>&lt;Style&gt;&gt;,
last_styled_spans: RefCell&lt;Rc&lt;[text::Span&lt;<span class="lifetime">'static</span>, Url&gt;]&gt;&gt;,
last_styled_spans: RefCell&lt;Arc&lt;[text::Span&lt;<span class="lifetime">'static</span>, Url&gt;]&gt;&gt;,
}

<span class="kw">impl </span>Text {
Expand All @@ -820,7 +820,7 @@
///
/// This method performs caching for you. It will only reallocate if the [`Style`]
/// provided changes.
</span><span class="kw">pub fn </span>spans(<span class="kw-2">&amp;</span><span class="self">self</span>, style: Style) -&gt; Rc&lt;[text::Span&lt;<span class="lifetime">'static</span>, Url&gt;]&gt; {
</span><span class="kw">pub fn </span>spans(<span class="kw-2">&amp;</span><span class="self">self</span>, style: Style) -&gt; Arc&lt;[text::Span&lt;<span class="lifetime">'static</span>, Url&gt;]&gt; {
<span class="kw">if </span><span class="prelude-val">Some</span>(style) != <span class="self">self</span>.last_style.get() {
<span class="kw-2">*</span><span class="self">self</span>.last_styled_spans.borrow_mut() =
<span class="self">self</span>.spans.iter().map(|span| span.view(<span class="kw-2">&amp;</span>style)).collect();
Expand Down
4 changes: 2 additions & 2 deletions trait.impl/core/marker/trait.Send.js

Large diffs are not rendered by default.

0 comments on commit 1f695ab

Please sign in to comment.