pub struct JustifiedGrowerTreeConfiguration { /* private fields */ }Implementations§
Source§impl JustifiedGrowerTreeConfiguration
impl JustifiedGrowerTreeConfiguration
pub fn target_name(&self) -> &String
pub fn target_name_confidence(&self) -> &f64
pub fn target_name_justification(&self) -> &String
pub fn depth(&self) -> &u8
pub fn depth_confidence(&self) -> &f64
pub fn depth_justification(&self) -> &String
pub fn breadth(&self) -> &u8
pub fn breadth_confidence(&self) -> &f64
pub fn breadth_justification(&self) -> &String
pub fn density(&self) -> &u8
pub fn density_confidence(&self) -> &f64
pub fn density_justification(&self) -> &String
pub fn leaf_granularity(&self) -> &f32
pub fn leaf_granularity_confidence(&self) -> &f64
pub fn leaf_granularity_justification(&self) -> &String
pub fn balance_symmetry(&self) -> &f32
pub fn balance_symmetry_confidence(&self) -> &f64
pub fn balance_symmetry_justification(&self) -> &String
pub fn complexity(&self) -> &JustifiedConfigurationComplexity
pub fn complexity_confidence(&self) -> &f64
pub fn complexity_justification(&self) -> &String
pub fn level_specific(&self) -> &Option<JustifiedTreeLevelSpecificConfiguration>
pub fn level_specific_confidence(&self) -> &f64
pub fn level_specific_justification(&self) -> &String
pub fn weighted_branching( &self, ) -> &Option<JustifiedWeightedBranchingConfiguration>
pub fn weighted_branching_confidence(&self) -> &f64
pub fn weighted_branching_justification(&self) -> &String
pub fn level_skipping(&self) -> &Option<JustifiedLevelSkippingConfiguration>
pub fn level_skipping_confidence(&self) -> &f64
pub fn level_skipping_justification(&self) -> &String
pub fn capstone(&self) -> &Option<JustifiedCapstoneGenerationConfiguration>
pub fn capstone_confidence(&self) -> &f64
pub fn capstone_justification(&self) -> &String
pub fn ordering(&self) -> &Option<JustifiedSubBranchOrdering>
pub fn ordering_confidence(&self) -> &f64
pub fn ordering_justification(&self) -> &String
pub fn ai_confidence( &self, ) -> &Option<JustifiedAiTreeBranchingConfidenceConfiguration>
pub fn ai_confidence_confidence(&self) -> &f64
pub fn ai_confidence_justification(&self) -> &String
pub fn aggregator_preference(&self) -> &f32
pub fn aggregator_preference_confidence(&self) -> &f64
pub fn aggregator_preference_justification(&self) -> &String
pub fn allow_early_leaves(&self) -> &bool
pub fn allow_early_leaves_confidence(&self) -> &f64
pub fn allow_early_leaves_justification(&self) -> &String
pub fn partial_subbranch_probability(&self) -> &f32
pub fn partial_subbranch_probability_confidence(&self) -> &f64
pub fn partial_subbranch_probability_justification(&self) -> &String
pub fn tree_expansion_policy(&self) -> &JustifiedTreeExpansionPolicy
pub fn tree_expansion_policy_confidence(&self) -> &f64
pub fn tree_expansion_policy_justification(&self) -> &String
pub fn aggregator_depth_limit(&self) -> &Option<u8>
pub fn aggregator_depth_limit_confidence(&self) -> &f64
pub fn aggregator_depth_limit_justification(&self) -> &String
pub fn dispatch_depth_limit(&self) -> &Option<u8>
pub fn dispatch_depth_limit_confidence(&self) -> &f64
pub fn dispatch_depth_limit_justification(&self) -> &String
pub fn leaf_min_depth(&self) -> &Option<u8>
pub fn leaf_min_depth_confidence(&self) -> &f64
pub fn leaf_min_depth_justification(&self) -> &String
Source§impl JustifiedGrowerTreeConfiguration
impl JustifiedGrowerTreeConfiguration
pub fn set_target_name( &mut self, val: String, ) -> &mut JustifiedGrowerTreeConfiguration
pub fn set_target_name_confidence( &mut self, val: f64, ) -> &mut JustifiedGrowerTreeConfiguration
pub fn set_target_name_justification( &mut self, val: String, ) -> &mut JustifiedGrowerTreeConfiguration
pub fn set_depth(&mut self, val: u8) -> &mut JustifiedGrowerTreeConfiguration
pub fn set_depth_confidence( &mut self, val: f64, ) -> &mut JustifiedGrowerTreeConfiguration
pub fn set_depth_justification( &mut self, val: String, ) -> &mut JustifiedGrowerTreeConfiguration
pub fn set_breadth(&mut self, val: u8) -> &mut JustifiedGrowerTreeConfiguration
pub fn set_breadth_confidence( &mut self, val: f64, ) -> &mut JustifiedGrowerTreeConfiguration
pub fn set_breadth_justification( &mut self, val: String, ) -> &mut JustifiedGrowerTreeConfiguration
pub fn set_density(&mut self, val: u8) -> &mut JustifiedGrowerTreeConfiguration
pub fn set_density_confidence( &mut self, val: f64, ) -> &mut JustifiedGrowerTreeConfiguration
pub fn set_density_justification( &mut self, val: String, ) -> &mut JustifiedGrowerTreeConfiguration
pub fn set_leaf_granularity( &mut self, val: f32, ) -> &mut JustifiedGrowerTreeConfiguration
pub fn set_leaf_granularity_confidence( &mut self, val: f64, ) -> &mut JustifiedGrowerTreeConfiguration
pub fn set_leaf_granularity_justification( &mut self, val: String, ) -> &mut JustifiedGrowerTreeConfiguration
pub fn set_balance_symmetry( &mut self, val: f32, ) -> &mut JustifiedGrowerTreeConfiguration
pub fn set_balance_symmetry_confidence( &mut self, val: f64, ) -> &mut JustifiedGrowerTreeConfiguration
pub fn set_balance_symmetry_justification( &mut self, val: String, ) -> &mut JustifiedGrowerTreeConfiguration
pub fn set_complexity( &mut self, val: JustifiedConfigurationComplexity, ) -> &mut JustifiedGrowerTreeConfiguration
pub fn set_complexity_confidence( &mut self, val: f64, ) -> &mut JustifiedGrowerTreeConfiguration
pub fn set_complexity_justification( &mut self, val: String, ) -> &mut JustifiedGrowerTreeConfiguration
pub fn set_level_specific( &mut self, val: Option<JustifiedTreeLevelSpecificConfiguration>, ) -> &mut JustifiedGrowerTreeConfiguration
pub fn set_level_specific_confidence( &mut self, val: f64, ) -> &mut JustifiedGrowerTreeConfiguration
pub fn set_level_specific_justification( &mut self, val: String, ) -> &mut JustifiedGrowerTreeConfiguration
pub fn set_weighted_branching( &mut self, val: Option<JustifiedWeightedBranchingConfiguration>, ) -> &mut JustifiedGrowerTreeConfiguration
pub fn set_weighted_branching_confidence( &mut self, val: f64, ) -> &mut JustifiedGrowerTreeConfiguration
pub fn set_weighted_branching_justification( &mut self, val: String, ) -> &mut JustifiedGrowerTreeConfiguration
pub fn set_level_skipping( &mut self, val: Option<JustifiedLevelSkippingConfiguration>, ) -> &mut JustifiedGrowerTreeConfiguration
pub fn set_level_skipping_confidence( &mut self, val: f64, ) -> &mut JustifiedGrowerTreeConfiguration
pub fn set_level_skipping_justification( &mut self, val: String, ) -> &mut JustifiedGrowerTreeConfiguration
pub fn set_capstone( &mut self, val: Option<JustifiedCapstoneGenerationConfiguration>, ) -> &mut JustifiedGrowerTreeConfiguration
pub fn set_capstone_confidence( &mut self, val: f64, ) -> &mut JustifiedGrowerTreeConfiguration
pub fn set_capstone_justification( &mut self, val: String, ) -> &mut JustifiedGrowerTreeConfiguration
pub fn set_ordering( &mut self, val: Option<JustifiedSubBranchOrdering>, ) -> &mut JustifiedGrowerTreeConfiguration
pub fn set_ordering_confidence( &mut self, val: f64, ) -> &mut JustifiedGrowerTreeConfiguration
pub fn set_ordering_justification( &mut self, val: String, ) -> &mut JustifiedGrowerTreeConfiguration
pub fn set_ai_confidence( &mut self, val: Option<JustifiedAiTreeBranchingConfidenceConfiguration>, ) -> &mut JustifiedGrowerTreeConfiguration
pub fn set_ai_confidence_confidence( &mut self, val: f64, ) -> &mut JustifiedGrowerTreeConfiguration
pub fn set_ai_confidence_justification( &mut self, val: String, ) -> &mut JustifiedGrowerTreeConfiguration
pub fn set_aggregator_preference( &mut self, val: f32, ) -> &mut JustifiedGrowerTreeConfiguration
pub fn set_aggregator_preference_confidence( &mut self, val: f64, ) -> &mut JustifiedGrowerTreeConfiguration
pub fn set_aggregator_preference_justification( &mut self, val: String, ) -> &mut JustifiedGrowerTreeConfiguration
pub fn set_allow_early_leaves( &mut self, val: bool, ) -> &mut JustifiedGrowerTreeConfiguration
pub fn set_allow_early_leaves_confidence( &mut self, val: f64, ) -> &mut JustifiedGrowerTreeConfiguration
pub fn set_allow_early_leaves_justification( &mut self, val: String, ) -> &mut JustifiedGrowerTreeConfiguration
pub fn set_partial_subbranch_probability( &mut self, val: f32, ) -> &mut JustifiedGrowerTreeConfiguration
pub fn set_partial_subbranch_probability_confidence( &mut self, val: f64, ) -> &mut JustifiedGrowerTreeConfiguration
pub fn set_partial_subbranch_probability_justification( &mut self, val: String, ) -> &mut JustifiedGrowerTreeConfiguration
pub fn set_tree_expansion_policy( &mut self, val: JustifiedTreeExpansionPolicy, ) -> &mut JustifiedGrowerTreeConfiguration
pub fn set_tree_expansion_policy_confidence( &mut self, val: f64, ) -> &mut JustifiedGrowerTreeConfiguration
pub fn set_tree_expansion_policy_justification( &mut self, val: String, ) -> &mut JustifiedGrowerTreeConfiguration
pub fn set_aggregator_depth_limit( &mut self, val: Option<u8>, ) -> &mut JustifiedGrowerTreeConfiguration
pub fn set_aggregator_depth_limit_confidence( &mut self, val: f64, ) -> &mut JustifiedGrowerTreeConfiguration
pub fn set_aggregator_depth_limit_justification( &mut self, val: String, ) -> &mut JustifiedGrowerTreeConfiguration
pub fn set_dispatch_depth_limit( &mut self, val: Option<u8>, ) -> &mut JustifiedGrowerTreeConfiguration
pub fn set_dispatch_depth_limit_confidence( &mut self, val: f64, ) -> &mut JustifiedGrowerTreeConfiguration
pub fn set_dispatch_depth_limit_justification( &mut self, val: String, ) -> &mut JustifiedGrowerTreeConfiguration
pub fn set_leaf_min_depth( &mut self, val: Option<u8>, ) -> &mut JustifiedGrowerTreeConfiguration
pub fn set_leaf_min_depth_confidence( &mut self, val: f64, ) -> &mut JustifiedGrowerTreeConfiguration
pub fn set_leaf_min_depth_justification( &mut self, val: String, ) -> &mut JustifiedGrowerTreeConfiguration
Source§impl JustifiedGrowerTreeConfiguration
impl JustifiedGrowerTreeConfiguration
Sourcepub fn stamp(&self) -> String
pub fn stamp(&self) -> String
This method is just an alias for produce_concrete_growth_instructions
Sourcepub fn produce_concrete_growth_instructions(&self) -> String
pub fn produce_concrete_growth_instructions(&self) -> String
Produces a coherent, human-readable set of instructions describing exactly how to grow a tree that conforms to this configuration, assuming no prior knowledge from the reader.
It includes a descriptive explanation for each relevant parameter, explaining both what the parameter means and why this particular value matters for shaping the resulting tree.
Fields or sub-configurations which are not set (i.e. None) are omitted from the instructions.
Enum variants that were not chosen are also omitted.
Trait Implementations§
Source§impl Clone for JustifiedGrowerTreeConfiguration
impl Clone for JustifiedGrowerTreeConfiguration
Source§fn clone(&self) -> JustifiedGrowerTreeConfiguration
fn clone(&self) -> JustifiedGrowerTreeConfiguration
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl<'de> Deserialize<'de> for JustifiedGrowerTreeConfiguration
impl<'de> Deserialize<'de> for JustifiedGrowerTreeConfiguration
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<JustifiedGrowerTreeConfiguration, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<JustifiedGrowerTreeConfiguration, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Source§impl From<JustifiedGrowerTreeConfiguration> for GrowerTreeConfiguration
impl From<JustifiedGrowerTreeConfiguration> for GrowerTreeConfiguration
Source§fn from(value: JustifiedGrowerTreeConfiguration) -> GrowerTreeConfiguration
fn from(value: JustifiedGrowerTreeConfiguration) -> GrowerTreeConfiguration
Source§impl FuzzyFromJsonValue for JustifiedGrowerTreeConfiguration
impl FuzzyFromJsonValue for JustifiedGrowerTreeConfiguration
fn fuzzy_from_json_value( value: &Value, ) -> Result<JustifiedGrowerTreeConfiguration, FuzzyFromJsonValueError>
Source§impl PartialEq for JustifiedGrowerTreeConfiguration
impl PartialEq for JustifiedGrowerTreeConfiguration
Source§fn eq(&self, other: &JustifiedGrowerTreeConfiguration) -> bool
fn eq(&self, other: &JustifiedGrowerTreeConfiguration) -> bool
self and other values to be equal, and is used by ==.Source§impl Serialize for JustifiedGrowerTreeConfiguration
impl Serialize for JustifiedGrowerTreeConfiguration
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
impl StructuralPartialEq for JustifiedGrowerTreeConfiguration
Auto Trait Implementations§
impl Freeze for JustifiedGrowerTreeConfiguration
impl RefUnwindSafe for JustifiedGrowerTreeConfiguration
impl Send for JustifiedGrowerTreeConfiguration
impl Sync for JustifiedGrowerTreeConfiguration
impl Unpin for JustifiedGrowerTreeConfiguration
impl UnsafeUnpin for JustifiedGrowerTreeConfiguration
impl UnwindSafe for JustifiedGrowerTreeConfiguration
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoCollection<T> for T
impl<T> IntoCollection<T> for T
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Paint for Twhere
T: ?Sized,
impl<T> Paint for Twhere
T: ?Sized,
Source§fn fg(&self, value: Color) -> Painted<&T>
fn fg(&self, value: Color) -> Painted<&T>
Returns a styled value derived from self with the foreground set to
value.
This method should be used rarely. Instead, prefer to use color-specific
builder methods like red() and
green(), which have the same functionality but are
pithier.
§Example
Set foreground color to white using fg():
use yansi::{Paint, Color};
painted.fg(Color::White);Set foreground color to white using white().
use yansi::Paint;
painted.white();Source§fn bright_black(&self) -> Painted<&T>
fn bright_black(&self) -> Painted<&T>
Source§fn bright_red(&self) -> Painted<&T>
fn bright_red(&self) -> Painted<&T>
Source§fn bright_green(&self) -> Painted<&T>
fn bright_green(&self) -> Painted<&T>
Source§fn bright_yellow(&self) -> Painted<&T>
fn bright_yellow(&self) -> Painted<&T>
Source§fn bright_blue(&self) -> Painted<&T>
fn bright_blue(&self) -> Painted<&T>
Source§fn bright_magenta(&self) -> Painted<&T>
fn bright_magenta(&self) -> Painted<&T>
Source§fn bright_cyan(&self) -> Painted<&T>
fn bright_cyan(&self) -> Painted<&T>
Source§fn bright_white(&self) -> Painted<&T>
fn bright_white(&self) -> Painted<&T>
Source§fn bg(&self, value: Color) -> Painted<&T>
fn bg(&self, value: Color) -> Painted<&T>
Returns a styled value derived from self with the background set to
value.
This method should be used rarely. Instead, prefer to use color-specific
builder methods like on_red() and
on_green(), which have the same functionality but
are pithier.
§Example
Set background color to red using fg():
use yansi::{Paint, Color};
painted.bg(Color::Red);Set background color to red using on_red().
use yansi::Paint;
painted.on_red();Source§fn on_primary(&self) -> Painted<&T>
fn on_primary(&self) -> Painted<&T>
Source§fn on_magenta(&self) -> Painted<&T>
fn on_magenta(&self) -> Painted<&T>
Source§fn on_bright_black(&self) -> Painted<&T>
fn on_bright_black(&self) -> Painted<&T>
Source§fn on_bright_red(&self) -> Painted<&T>
fn on_bright_red(&self) -> Painted<&T>
Source§fn on_bright_green(&self) -> Painted<&T>
fn on_bright_green(&self) -> Painted<&T>
Source§fn on_bright_yellow(&self) -> Painted<&T>
fn on_bright_yellow(&self) -> Painted<&T>
Source§fn on_bright_blue(&self) -> Painted<&T>
fn on_bright_blue(&self) -> Painted<&T>
Source§fn on_bright_magenta(&self) -> Painted<&T>
fn on_bright_magenta(&self) -> Painted<&T>
Source§fn on_bright_cyan(&self) -> Painted<&T>
fn on_bright_cyan(&self) -> Painted<&T>
Source§fn on_bright_white(&self) -> Painted<&T>
fn on_bright_white(&self) -> Painted<&T>
Source§fn attr(&self, value: Attribute) -> Painted<&T>
fn attr(&self, value: Attribute) -> Painted<&T>
Enables the styling Attribute value.
This method should be used rarely. Instead, prefer to use
attribute-specific builder methods like bold() and
underline(), which have the same functionality
but are pithier.
§Example
Make text bold using attr():
use yansi::{Paint, Attribute};
painted.attr(Attribute::Bold);Make text bold using using bold().
use yansi::Paint;
painted.bold();Source§fn rapid_blink(&self) -> Painted<&T>
fn rapid_blink(&self) -> Painted<&T>
Source§fn quirk(&self, value: Quirk) -> Painted<&T>
fn quirk(&self, value: Quirk) -> Painted<&T>
Enables the yansi Quirk value.
This method should be used rarely. Instead, prefer to use quirk-specific
builder methods like mask() and
wrap(), which have the same functionality but are
pithier.
§Example
Enable wrapping using .quirk():
use yansi::{Paint, Quirk};
painted.quirk(Quirk::Wrap);Enable wrapping using wrap().
use yansi::Paint;
painted.wrap();Source§fn clear(&self) -> Painted<&T>
👎Deprecated since 1.0.1: renamed to resetting() due to conflicts with Vec::clear().
The clear() method will be removed in a future release.
fn clear(&self) -> Painted<&T>
renamed to resetting() due to conflicts with Vec::clear().
The clear() method will be removed in a future release.
Source§fn whenever(&self, value: Condition) -> Painted<&T>
fn whenever(&self, value: Condition) -> Painted<&T>
Conditionally enable styling based on whether the Condition value
applies. Replaces any previous condition.
See the crate level docs for more details.
§Example
Enable styling painted only when both stdout and stderr are TTYs:
use yansi::{Paint, Condition};
painted.red().on_yellow().whenever(Condition::STDOUTERR_ARE_TTY);