pub struct Standard { /* private fields */ }Expand description
This structure allows for the description of a specific standard, or specification, issued by a well-known standards agency. Note that different versions of a standard should be different instances with at least different long references.
Implementations§
Source§impl Standard
impl Standard
Sourcepub const fn new(
agency: Agency,
short_ref: &'static str,
title: &'static str,
url: &'static str,
) -> Self
pub const fn new( agency: Agency, short_ref: &'static str, title: &'static str, url: &'static str, ) -> Self
Create a new Standard without a long reference value.
Sourcepub const fn new_with_long_ref(
agency: Agency,
short_ref: &'static str,
long_ref: &'static str,
title: &'static str,
url: &'static str,
) -> Self
pub const fn new_with_long_ref( agency: Agency, short_ref: &'static str, long_ref: &'static str, title: &'static str, url: &'static str, ) -> Self
Create a new Standard with a long reference value.
Sourcepub const fn short_ref(&self) -> &'static str
pub const fn short_ref(&self) -> &'static str
Return the short reference, or number, of this standard.
Trait Implementations§
Source§impl Deserialize<'static> for Standard
impl Deserialize<'static> for Standard
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'static>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'static>,
Deserialize this value from the given Serde deserializer. Read more
impl Copy for Standard
impl Eq for Standard
impl StructuralPartialEq for Standard
Auto Trait Implementations§
impl Freeze for Standard
impl RefUnwindSafe for Standard
impl Send for Standard
impl Sync for Standard
impl Unpin for Standard
impl UnwindSafe for Standard
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