[−][src]Trait ibuilder::BuildableValue
The interactive builder for a base type.
Required methods
fn apply(
&mut self,
data: Input,
current_fields: &[String]
) -> Result<(), ChooseError>
&mut self,
data: Input,
current_fields: &[String]
) -> Result<(), ChooseError>
Try to change the inner value using the provided input.
fn get_options(&self, current_fields: &[String]) -> Options
The options to show to the user for setting this value.
fn get_subfields(&self, current_fields: &[String]) -> Vec<String>
Whether this value contains itself other values (i.e. it's a struct).
fn to_node(&self) -> Node
Create the tree structure of this value.
fn get_value_any(&self) -> Option<Box<dyn Any>>
Get the inner value, if present, as an Any
.
It's very important that the returned Any
internal type matches the type that this
builder is used for. The Builder
will downcast this Any
to the types it's expecting,
panicking in case of mismatched type.
Implementors
impl BuildableValue for BoolBuilder
[src]
fn get_subfields(&self, _: &[String]) -> Vec<String>
[src]
fn to_node(&self) -> Node
[src]
fn apply(
&mut self,
data: Input,
current_fields: &[String]
) -> Result<(), ChooseError>
[src]
&mut self,
data: Input,
current_fields: &[String]
) -> Result<(), ChooseError>
fn get_options(&self, current_fields: &[String]) -> Options
[src]
fn get_value_any(&self) -> Option<Box<dyn Any>>
[src]
impl BuildableValue for CharBuilder
[src]
fn get_subfields(&self, _: &[String]) -> Vec<String>
[src]
fn to_node(&self) -> Node
[src]
fn apply(
&mut self,
data: Input,
current_fields: &[String]
) -> Result<(), ChooseError>
[src]
&mut self,
data: Input,
current_fields: &[String]
) -> Result<(), ChooseError>
fn get_options(&self, current_fields: &[String]) -> Options
[src]
fn get_value_any(&self) -> Option<Box<dyn Any>>
[src]
impl BuildableValue for F32Builder
[src]
fn get_subfields(&self, _: &[String]) -> Vec<String>
[src]
fn to_node(&self) -> Node
[src]
fn apply(
&mut self,
data: Input,
current_fields: &[String]
) -> Result<(), ChooseError>
[src]
&mut self,
data: Input,
current_fields: &[String]
) -> Result<(), ChooseError>
fn get_options(&self, current_fields: &[String]) -> Options
[src]
fn get_value_any(&self) -> Option<Box<dyn Any>>
[src]
impl BuildableValue for F64Builder
[src]
fn get_subfields(&self, _: &[String]) -> Vec<String>
[src]
fn to_node(&self) -> Node
[src]
fn apply(
&mut self,
data: Input,
current_fields: &[String]
) -> Result<(), ChooseError>
[src]
&mut self,
data: Input,
current_fields: &[String]
) -> Result<(), ChooseError>
fn get_options(&self, current_fields: &[String]) -> Options
[src]
fn get_value_any(&self) -> Option<Box<dyn Any>>
[src]
impl BuildableValue for I16Builder
[src]
fn get_subfields(&self, _: &[String]) -> Vec<String>
[src]
fn to_node(&self) -> Node
[src]
fn apply(
&mut self,
data: Input,
current_fields: &[String]
) -> Result<(), ChooseError>
[src]
&mut self,
data: Input,
current_fields: &[String]
) -> Result<(), ChooseError>
fn get_options(&self, current_fields: &[String]) -> Options
[src]
fn get_value_any(&self) -> Option<Box<dyn Any>>
[src]
impl BuildableValue for I32Builder
[src]
fn get_subfields(&self, _: &[String]) -> Vec<String>
[src]
fn to_node(&self) -> Node
[src]
fn apply(
&mut self,
data: Input,
current_fields: &[String]
) -> Result<(), ChooseError>
[src]
&mut self,
data: Input,
current_fields: &[String]
) -> Result<(), ChooseError>
fn get_options(&self, current_fields: &[String]) -> Options
[src]
fn get_value_any(&self) -> Option<Box<dyn Any>>
[src]
impl BuildableValue for I64Builder
[src]
fn get_subfields(&self, _: &[String]) -> Vec<String>
[src]
fn to_node(&self) -> Node
[src]
fn apply(
&mut self,
data: Input,
current_fields: &[String]
) -> Result<(), ChooseError>
[src]
&mut self,
data: Input,
current_fields: &[String]
) -> Result<(), ChooseError>
fn get_options(&self, current_fields: &[String]) -> Options
[src]
fn get_value_any(&self) -> Option<Box<dyn Any>>
[src]
impl BuildableValue for I8Builder
[src]
fn get_subfields(&self, _: &[String]) -> Vec<String>
[src]
fn to_node(&self) -> Node
[src]
fn apply(
&mut self,
data: Input,
current_fields: &[String]
) -> Result<(), ChooseError>
[src]
&mut self,
data: Input,
current_fields: &[String]
) -> Result<(), ChooseError>
fn get_options(&self, current_fields: &[String]) -> Options
[src]
fn get_value_any(&self) -> Option<Box<dyn Any>>
[src]
impl BuildableValue for IsizeBuilder
[src]
fn get_subfields(&self, _: &[String]) -> Vec<String>
[src]
fn to_node(&self) -> Node
[src]
fn apply(
&mut self,
data: Input,
current_fields: &[String]
) -> Result<(), ChooseError>
[src]
&mut self,
data: Input,
current_fields: &[String]
) -> Result<(), ChooseError>
fn get_options(&self, current_fields: &[String]) -> Options
[src]
fn get_value_any(&self) -> Option<Box<dyn Any>>
[src]
impl BuildableValue for StringBuilder
[src]
fn get_subfields(&self, _: &[String]) -> Vec<String>
[src]
fn to_node(&self) -> Node
[src]
fn apply(
&mut self,
data: Input,
current_fields: &[String]
) -> Result<(), ChooseError>
[src]
&mut self,
data: Input,
current_fields: &[String]
) -> Result<(), ChooseError>
fn get_options(&self, current_fields: &[String]) -> Options
[src]
fn get_value_any(&self) -> Option<Box<dyn Any>>
[src]
impl BuildableValue for U16Builder
[src]
fn get_subfields(&self, _: &[String]) -> Vec<String>
[src]
fn to_node(&self) -> Node
[src]
fn apply(
&mut self,
data: Input,
current_fields: &[String]
) -> Result<(), ChooseError>
[src]
&mut self,
data: Input,
current_fields: &[String]
) -> Result<(), ChooseError>
fn get_options(&self, current_fields: &[String]) -> Options
[src]
fn get_value_any(&self) -> Option<Box<dyn Any>>
[src]
impl BuildableValue for U32Builder
[src]
fn get_subfields(&self, _: &[String]) -> Vec<String>
[src]
fn to_node(&self) -> Node
[src]
fn apply(
&mut self,
data: Input,
current_fields: &[String]
) -> Result<(), ChooseError>
[src]
&mut self,
data: Input,
current_fields: &[String]
) -> Result<(), ChooseError>
fn get_options(&self, current_fields: &[String]) -> Options
[src]
fn get_value_any(&self) -> Option<Box<dyn Any>>
[src]
impl BuildableValue for U64Builder
[src]
fn get_subfields(&self, _: &[String]) -> Vec<String>
[src]
fn to_node(&self) -> Node
[src]
fn apply(
&mut self,
data: Input,
current_fields: &[String]
) -> Result<(), ChooseError>
[src]
&mut self,
data: Input,
current_fields: &[String]
) -> Result<(), ChooseError>
fn get_options(&self, current_fields: &[String]) -> Options
[src]
fn get_value_any(&self) -> Option<Box<dyn Any>>
[src]
impl BuildableValue for U8Builder
[src]
fn get_subfields(&self, _: &[String]) -> Vec<String>
[src]
fn to_node(&self) -> Node
[src]
fn apply(
&mut self,
data: Input,
current_fields: &[String]
) -> Result<(), ChooseError>
[src]
&mut self,
data: Input,
current_fields: &[String]
) -> Result<(), ChooseError>
fn get_options(&self, current_fields: &[String]) -> Options
[src]
fn get_value_any(&self) -> Option<Box<dyn Any>>
[src]
impl BuildableValue for UsizeBuilder
[src]
fn get_subfields(&self, _: &[String]) -> Vec<String>
[src]
fn to_node(&self) -> Node
[src]
fn apply(
&mut self,
data: Input,
current_fields: &[String]
) -> Result<(), ChooseError>
[src]
&mut self,
data: Input,
current_fields: &[String]
) -> Result<(), ChooseError>
fn get_options(&self, current_fields: &[String]) -> Options
[src]
fn get_value_any(&self) -> Option<Box<dyn Any>>
[src]
impl<T> BuildableValue for BoxBuilder<T> where
T: NewBuildableValue + 'static,
[src]
T: NewBuildableValue + 'static,
fn apply(
&mut self,
data: Input,
current_fields: &[String]
) -> Result<(), ChooseError>
[src]
&mut self,
data: Input,
current_fields: &[String]
) -> Result<(), ChooseError>
fn get_options(&self, current_fields: &[String]) -> Options
[src]
fn get_subfields(&self, current_fields: &[String]) -> Vec<String>
[src]
fn to_node(&self) -> Node
[src]
fn get_value_any(&self) -> Option<Box<dyn Any>>
[src]
impl<T> BuildableValue for OptionBuilder<T> where
T: NewBuildableValue + 'static,
[src]
T: NewBuildableValue + 'static,
fn apply(
&mut self,
data: Input,
current_fields: &[String]
) -> Result<(), ChooseError>
[src]
&mut self,
data: Input,
current_fields: &[String]
) -> Result<(), ChooseError>
fn get_options(&self, current_fields: &[String]) -> Options
[src]
fn get_subfields(&self, current_fields: &[String]) -> Vec<String>
[src]
fn to_node(&self) -> Node
[src]
fn get_value_any(&self) -> Option<Box<dyn Any>>
[src]
impl<T> BuildableValue for VecBuilder<T> where
T: NewBuildableValue + 'static,
[src]
T: NewBuildableValue + 'static,
fn apply(
&mut self,
data: Input,
current_fields: &[String]
) -> Result<(), ChooseError>
[src]
&mut self,
data: Input,
current_fields: &[String]
) -> Result<(), ChooseError>