MCPcopy Create free account
hub / github.com/angular-rust/yew-components / new

Method new

src/text_inputs/mod.rs:44–48  ·  view source on GitHub ↗
(
        func: F,
    )

Source from the content-addressed store, hash-verified

42#[cfg(any(feature = "textfield", feature = "textarea"))]
43impl ValidityTransform {
44 pub(crate) fn new<F: Fn(String, NativeValidityState) -> ValidityState + 'static>(
45 func: F,
46 ) -> ValidityTransform {
47 ValidityTransform(Rc::new(func))
48 }
49}
50
51fn set_on_input_handler(

Callers

nothing calls this directly

Calls 1

ValidityTransformClass · 0.85

Tested by

no test coverage detected