Trait enso_flexer::prelude::WithContent[][src]

pub trait WithContent: HasSizedContent {
    fn with_content<F, T>(&self, f: F) -> T
    where
        F: FnOnce(&Self::Content) -> 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(&Self::Content) -> T, 
[src]

Expand description

Runs a function on the reference to the content.

Loading content...

Implementors

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

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

Loading content...