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
Source§fn clone(&self) -> RegisteredDiagnosticCode
fn clone(&self) -> RegisteredDiagnosticCode
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl 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