pub enum NameScopeValueError {
Completed,
DuplicateName(String),
UnsupportedValue,
NullValue,
}Expand description
Why a value could not be registered in a name scope
(INameScope::try_register_value): the errors of NameScopeError and
the ones only a value can have.
Variants§
Completed
The name scope is completed: no further registrations are allowed.
DuplicateName(String)
Another value is registered with the name.
UnsupportedValue
A custom scope that only implements the registration of objects of the object model was given another value.
NullValue
The value is null (a boxed nullable that holds no value).
Trait Implementations§
Source§impl Clone for NameScopeValueError
impl Clone for NameScopeValueError
Source§impl Debug for NameScopeValueError
impl Debug for NameScopeValueError
Source§impl Display for NameScopeValueError
impl Display for NameScopeValueError
impl Eq for NameScopeValueError
Source§impl Error for NameScopeValueError
impl Error for NameScopeValueError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl From<NameScopeError> for NameScopeValueError
impl From<NameScopeError> for NameScopeValueError
Source§fn from(error: NameScopeError) -> Self
fn from(error: NameScopeError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for NameScopeValueError
impl PartialEq for NameScopeValueError
impl StructuralPartialEq for NameScopeValueError
Auto Trait Implementations§
impl Freeze for NameScopeValueError
impl RefUnwindSafe for NameScopeValueError
impl Send for NameScopeValueError
impl Sync for NameScopeValueError
impl Unpin for NameScopeValueError
impl UnsafeUnpin for NameScopeValueError
impl UnwindSafe for NameScopeValueError
Blanket Implementations§
Source§impl<T> AnyValue for Twhere
T: PartialEq + 'static,
impl<T> AnyValue for Twhere
T: PartialEq + 'static,
fn any_value_as_any(&self) -> &(dyn Any + 'static)
fn any_value_eq(&self, other: &(dyn AnyValue + 'static)) -> bool
fn any_value_type_name(&self) -> &'static str
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
Source§impl<T> ClassDefaults for Twhere
T: ?Sized,
impl<T> ClassDefaults for Twhere
T: ?Sized,
Source§fn static_constructor()
fn static_constructor()
The static constructor of a type: work done once per thread, after
the properties of the type are registered and before its first
instance exists (class handlers,
affects_render, metadata
overrides). Read more