pub struct DefaultPropertyConfig<K: ?Sized + KeyConstraint, V: ?Sized + ValueConstraint> { /* private fields */ }
Implementations§
Source§impl<K: ?Sized + KeyConstraint, V: ?Sized + ValueConstraint> DefaultPropertyConfig<K, V>
impl<K: ?Sized + KeyConstraint, V: ?Sized + ValueConstraint> DefaultPropertyConfig<K, V>
pub fn from_raw(config: &dyn RawPropertyConfig) -> Self
Trait Implementations§
Source§impl<K: Clone + ?Sized + KeyConstraint, V: Clone + ?Sized + ValueConstraint> Clone for DefaultPropertyConfig<K, V>
impl<K: Clone + ?Sized + KeyConstraint, V: Clone + ?Sized + ValueConstraint> Clone for DefaultPropertyConfig<K, V>
Source§fn clone(&self) -> DefaultPropertyConfig<K, V>
fn clone(&self) -> DefaultPropertyConfig<K, V>
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<K: ?Sized + KeyConstraint, V: ?Sized + ValueConstraint> Debug for DefaultPropertyConfig<K, V>
impl<K: ?Sized + KeyConstraint, V: ?Sized + ValueConstraint> Debug for DefaultPropertyConfig<K, V>
Source§impl<K: ?Sized + KeyConstraint, V: ?Sized + ValueConstraint> Hash for DefaultPropertyConfig<K, V>
impl<K: ?Sized + KeyConstraint, V: ?Sized + ValueConstraint> Hash for DefaultPropertyConfig<K, V>
Source§impl<K: ?Sized + KeyConstraint, V: ?Sized + ValueConstraint> PartialEq for DefaultPropertyConfig<K, V>
impl<K: ?Sized + KeyConstraint, V: ?Sized + ValueConstraint> PartialEq for DefaultPropertyConfig<K, V>
Source§impl<K: ?Sized + KeyConstraint, V: ?Sized + ValueConstraint> PropertyConfig<K, V> for DefaultPropertyConfig<K, V>
impl<K: ?Sized + KeyConstraint, V: ?Sized + ValueConstraint> PropertyConfig<K, V> for DefaultPropertyConfig<K, V>
Source§fn get_key(&self) -> Box<K>
fn get_key(&self) -> Box<K>
a unique key in a configuration manager to identify a unique property,
fn clone_boxed(&self) -> Box<dyn PropertyConfig<K, V>>
fn to_boxed(self) -> Box<dyn PropertyConfig<K, V>>
Source§impl<K: ?Sized + KeyConstraint, V: ?Sized + ValueConstraint> RawPropertyConfig for DefaultPropertyConfig<K, V>
impl<K: ?Sized + KeyConstraint, V: ?Sized + ValueConstraint> RawPropertyConfig for DefaultPropertyConfig<K, V>
Source§fn get_raw_key(&self) -> Box<dyn Key>
fn get_raw_key(&self) -> Box<dyn Key>
a unique key in a configuration manager to identify a unique property,
Source§fn get_value_type(&self) -> TypeId
fn get_value_type(&self) -> TypeId
type of the property value,
Source§fn get_raw_default_value(&self) -> Option<Box<dyn Value>>
fn get_raw_default_value(&self) -> Option<Box<dyn Value>>
default value of the property Read more
Source§fn get_value_converters(&self) -> &[Box<dyn RawTypeConverter>]
fn get_value_converters(&self) -> &[Box<dyn RawTypeConverter>]
type converters used to convert values of different types,
for example, some configuration source has string value,
but integer is needed, so it’s necessary to provide a string-to-int converter Read more
Source§fn get_value_filter(&self) -> Option<&dyn RawValueFilter>
fn get_value_filter(&self) -> Option<&dyn RawValueFilter>
a chance for the user to check the value before using a property value provided by a configuration source,
filter input is non-null, if output is null, the value will be ignored,
if output is non-None, output will be used as the property value Read more
Source§fn is_static(&self) -> bool
fn is_static(&self) -> bool
whether the property is static (not dynamically changeable) Read more
Source§fn is_required(&self) -> bool
fn is_required(&self) -> bool
whether the property is required (must be configured or have a default value) Read more
fn clone_boxed(&self) -> Box<dyn RawPropertyConfig>
fn to_boxed(self) -> Box<dyn RawPropertyConfig>
fn as_trait_ref(&self) -> &dyn RawPropertyConfig
fn as_trait_mut(&mut self) -> &mut dyn RawPropertyConfig
impl<K: ?Sized + KeyConstraint, V: ?Sized + ValueConstraint> Eq for DefaultPropertyConfig<K, V>
impl<K: ?Sized + KeyConstraint, V: ?Sized + ValueConstraint> Send for DefaultPropertyConfig<K, V>
impl<K: ?Sized + KeyConstraint, V: ?Sized + ValueConstraint> Sync for DefaultPropertyConfig<K, V>
Auto Trait Implementations§
impl<K, V> Freeze for DefaultPropertyConfig<K, V>
impl<K, V> !RefUnwindSafe for DefaultPropertyConfig<K, V>
impl<K, V> Unpin for DefaultPropertyConfig<K, V>
impl<K, V> !UnwindSafe for DefaultPropertyConfig<K, V>
Blanket Implementations§
Source§impl<T> AnyExtension for Twhere
T: ?Sized,
impl<T> AnyExtension for Twhere
T: ?Sized,
Source§impl<T> AsAny for Twhere
T: Any,
impl<T> AsAny for Twhere
T: Any,
fn as_any_ref(&self) -> &(dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
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
Mutably borrows from an owned value. Read more