ori::core::style

Trait IntoStyleBuilder

Source
pub trait IntoStyleBuilder<T> {
    type Output;

    // Required method
    fn build(&self, styles: &mut Styles) -> Self::Output;

    // Provided method
    fn dependencies(&self) -> Vec<TypeId> { ... }
}
Expand description

A trait for converting a function into a style builder.

See StyleBuilder::new for more information.

Required Associated Types§

Source

type Output

The type of style built by the builder.

Required Methods§

Source

fn build(&self, styles: &mut Styles) -> Self::Output

Build the style.

Provided Methods§

Source

fn dependencies(&self) -> Vec<TypeId>

Get the dependencies of the style builder.

Implementors§

Source§

impl<A, B, C, D, E, F, G, H, I, J, K, L, FN, R> IntoStyleBuilder<fn(_: A, _: B, _: C, _: D, _: E, _: F, _: G, _: H, _: I, _: J, _: K, _: L) -> R> for FN
where A: Style + Any, B: Style + Any, C: Style + Any, D: Style + Any, E: Style + Any, F: Style + Any, G: Style + Any, H: Style + Any, I: Style + Any, J: Style + Any, K: Style + Any, L: Style + Any, FN: Fn(&A, &B, &C, &D, &E, &F, &G, &H, &I, &J, &K, &L) -> R,

Source§

impl<B, C, D, E, F, G, H, I, J, K, L, FN, R> IntoStyleBuilder<fn(_: B, _: C, _: D, _: E, _: F, _: G, _: H, _: I, _: J, _: K, _: L) -> R> for FN
where B: Style + Any, C: Style + Any, D: Style + Any, E: Style + Any, F: Style + Any, G: Style + Any, H: Style + Any, I: Style + Any, J: Style + Any, K: Style + Any, L: Style + Any, FN: Fn(&B, &C, &D, &E, &F, &G, &H, &I, &J, &K, &L) -> R,

Source§

impl<C, D, E, F, G, H, I, J, K, L, FN, R> IntoStyleBuilder<fn(_: C, _: D, _: E, _: F, _: G, _: H, _: I, _: J, _: K, _: L) -> R> for FN
where C: Style + Any, D: Style + Any, E: Style + Any, F: Style + Any, G: Style + Any, H: Style + Any, I: Style + Any, J: Style + Any, K: Style + Any, L: Style + Any, FN: Fn(&C, &D, &E, &F, &G, &H, &I, &J, &K, &L) -> R,

Source§

impl<D, E, F, G, H, I, J, K, L, FN, R> IntoStyleBuilder<fn(_: D, _: E, _: F, _: G, _: H, _: I, _: J, _: K, _: L) -> R> for FN
where D: Style + Any, E: Style + Any, F: Style + Any, G: Style + Any, H: Style + Any, I: Style + Any, J: Style + Any, K: Style + Any, L: Style + Any, FN: Fn(&D, &E, &F, &G, &H, &I, &J, &K, &L) -> R,

Source§

impl<E, F, G, H, I, J, K, L, FN, R> IntoStyleBuilder<fn(_: E, _: F, _: G, _: H, _: I, _: J, _: K, _: L) -> R> for FN
where E: Style + Any, F: Style + Any, G: Style + Any, H: Style + Any, I: Style + Any, J: Style + Any, K: Style + Any, L: Style + Any, FN: Fn(&E, &F, &G, &H, &I, &J, &K, &L) -> R,

Source§

impl<F, G, H, I, J, K, L, FN, R> IntoStyleBuilder<fn(_: F, _: G, _: H, _: I, _: J, _: K, _: L) -> R> for FN
where F: Style + Any, G: Style + Any, H: Style + Any, I: Style + Any, J: Style + Any, K: Style + Any, L: Style + Any, FN: Fn(&F, &G, &H, &I, &J, &K, &L) -> R,

Source§

impl<FN, R> IntoStyleBuilder<fn() -> R> for FN
where FN: Fn() -> R,

Source§

impl<G, H, I, J, K, L, FN, R> IntoStyleBuilder<fn(_: G, _: H, _: I, _: J, _: K, _: L) -> R> for FN
where G: Style + Any, H: Style + Any, I: Style + Any, J: Style + Any, K: Style + Any, L: Style + Any, FN: Fn(&G, &H, &I, &J, &K, &L) -> R,

Source§

impl<H, I, J, K, L, FN, R> IntoStyleBuilder<fn(_: H, _: I, _: J, _: K, _: L) -> R> for FN
where H: Style + Any, I: Style + Any, J: Style + Any, K: Style + Any, L: Style + Any, FN: Fn(&H, &I, &J, &K, &L) -> R,

Source§

impl<I, J, K, L, FN, R> IntoStyleBuilder<fn(_: I, _: J, _: K, _: L) -> R> for FN
where I: Style + Any, J: Style + Any, K: Style + Any, L: Style + Any, FN: Fn(&I, &J, &K, &L) -> R,

Source§

impl<J, K, L, FN, R> IntoStyleBuilder<fn(_: J, _: K, _: L) -> R> for FN
where J: Style + Any, K: Style + Any, L: Style + Any, FN: Fn(&J, &K, &L) -> R,

Source§

impl<K, L, FN, R> IntoStyleBuilder<fn(_: K, _: L) -> R> for FN
where K: Style + Any, L: Style + Any, FN: Fn(&K, &L) -> R,

Source§

impl<L, FN, R> IntoStyleBuilder<fn(_: L) -> R> for FN
where L: Style + Any, FN: Fn(&L) -> R,

Source§

impl<T> IntoStyleBuilder<StyleBuilder<T>> for StyleBuilder<T>