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]

Expand description

Runs a function on the reference to the content.

Loading content...

Implementors

impl<T: ContentRef + HasSizedContent> WithContent for T[src]

fn with_content<F, S>(&self, f: F) -> S where
    F: FnOnce(&Content<Self>) -> S, 
[src]

Loading content...