pub enum StructError {
NoSuchNode(String),
Invalid(String),
TooBig(usize, usize),
ModTooDeep(usize),
OutOfDomain(f64, String),
}Expand description
Why a structural edit was rejected.
Variants§
NoSuchNode(String)
No node at that key.
Invalid(String)
The operation does not apply to this node kind.
TooBig(usize, usize)
The edit would exceed the size/depth ceilings.
ModTooDeep(usize)
The edit would stack more CV processors on one cable than the realtime voice is willing to carry.
OutOfDomain(f64, String)
A continuous site would be seated outside its declared range
(crate::PARAM_DOMAIN).
Reported by validate_tree, the predicate. It is deliberately not
how apply_struct_op and the whole-tree replace behave — see
PatchTree::clamp_domains for why a domain fault is repaired rather
than refused.
Trait Implementations§
Source§impl Debug for StructError
impl Debug for StructError
Source§impl Display for StructError
impl Display for StructError
Source§impl Error for StructError
impl Error for StructError
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()
Auto Trait Implementations§
impl Freeze for StructError
impl RefUnwindSafe for StructError
impl Send for StructError
impl Sync for StructError
impl Unpin for StructError
impl UnsafeUnpin for StructError
impl UnwindSafe for StructError
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
Mutably borrows from an owned value. Read more