fn get_value(&self) -> String;
fn set_value(&mut self, value: &str);
+ fn add_filter(&mut self, filter: super::filters::Filter);
+
+ fn filter(&mut self);
+
fn render(&self) -> String;
fn any(&mut self) -> &mut dyn Any;
self.field.value = String::from(value);
}
+ fn add_filter(&mut self, filter: super::filters::Filter) {
+ self.field.filters.push(filter);
+ }
+
+ fn filter(&mut self) {
+ for f in &self.field.filters {
+ self.field.value = (f)(&self.field.value);
+ }
+ }
+
fn render(&self) -> String {
let mut s = String::new();
self.field.value = String::from(value);
}
+ fn add_filter(&mut self, filter: super::filters::Filter) {
+ self.field.filters.push(filter);
+ }
+
+ fn filter(&mut self) {
+ for f in &self.field.filters {
+ self.field.value = (f)(&self.field.value);
+ }
+ }
+
fn render(&self) -> String {
let mut s = String::new();
self.field.value = String::from(value);
}
+ fn add_filter(&mut self, filter: super::filters::Filter) {
+ self.field.filters.push(filter);
+ }
+
+ fn filter(&mut self) {
+ for f in &self.field.filters {
+ self.field.value = (f)(&self.field.value);
+ }
+ }
+
fn render(&self) -> String {
let mut s = String::new();
self.field.value = String::from(value);
}
+ fn add_filter(&mut self, filter: super::filters::Filter) {
+ self.field.filters.push(filter);
+ }
+
+ fn filter(&mut self) {
+ for f in &self.field.filters {
+ self.field.value = (f)(&self.field.value);
+ }
+ }
+
fn render(&self) -> String {
let mut s = String::new();
self.field.value = String::from(value);
}
+ fn add_filter(&mut self, filter: super::filters::Filter) {
+ self.field.filters.push(filter);
+ }
+
+ fn filter(&mut self) {
+ for f in &self.field.filters {
+ self.field.value = (f)(&self.field.value);
+ }
+ }
+
fn render(&self) -> String {
let mut s = String::new();