Trait enso_prelude::WithContent [−][src]
pub trait WithContent: HasSizedContent { fn with_content<F, T>(&self, f: F) -> T
where
F: FnOnce(&Content<Self>) -> T; }
Expand description
Runs a function on the reference to the content.
Required methods
fn with_content<F, T>(&self, f: F) -> T where
F: FnOnce(&Content<Self>) -> T,
[src]
fn with_content<F, T>(&self, f: F) -> T where
F: FnOnce(&Content<Self>) -> T,
[src]Runs a function on the reference to the content.
Implementors
impl<T: ContentRef + HasSizedContent> WithContent for T
[src]
impl<T: ContentRef + HasSizedContent> WithContent for T
[src]fn with_content<F, S>(&self, f: F) -> S where
F: FnOnce(&Content<Self>) -> S,
[src]
F: FnOnce(&Content<Self>) -> S,