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,
fn with_content<F, T>(&self, f: F) -> T where
F: FnOnce(&Content<Self>) -> T,
Runs a function on the reference to the content.