Struct ruma_common::api::error::IncorrectArgumentCount
source · pub struct IncorrectArgumentCount {
pub expected: usize,
pub got: usize,
}
Available on crate feature
api
only.Expand description
An error that happens when an incorrect amount of arguments have been passed to PathData parts formatting.
Fields§
§expected: usize
The expected amount of arguments.
got: usize
The amount of arguments received.
Trait Implementations§
source§impl Debug for IncorrectArgumentCount
impl Debug for IncorrectArgumentCount
source§impl Display for IncorrectArgumentCount
impl Display for IncorrectArgumentCount
source§impl Error for IncorrectArgumentCount
impl Error for IncorrectArgumentCount
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 IncorrectArgumentCount
impl RefUnwindSafe for IncorrectArgumentCount
impl Send for IncorrectArgumentCount
impl Sync for IncorrectArgumentCount
impl Unpin for IncorrectArgumentCount
impl UnwindSafe for IncorrectArgumentCount
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