pub struct RegisteredDiagnosticCode(/* private fields */);Expand description
Membership must come from the generated response registry, not an error text.
Implementations§
Source§impl RegisteredDiagnosticCode
impl RegisteredDiagnosticCode
pub fn from_registered( code: &'static str, registry: &[&'static str], ) -> Option<Self>
Trait Implementations§
Source§impl Clone for RegisteredDiagnosticCode
impl Clone for RegisteredDiagnosticCode
impl Copy for RegisteredDiagnosticCode
Auto Trait Implementations§
impl Freeze for RegisteredDiagnosticCode
impl RefUnwindSafe for RegisteredDiagnosticCode
impl Send for RegisteredDiagnosticCode
impl Sync for RegisteredDiagnosticCode
impl Unpin for RegisteredDiagnosticCode
impl UnsafeUnpin for RegisteredDiagnosticCode
impl UnwindSafe for RegisteredDiagnosticCode
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