pub struct Reference { /* private fields */ }Expand description
An ISO 23387 reference by GUID, URI, or both.
Implementations§
Source§impl Reference
impl Reference
Sourcepub const fn new(guid: Option<Guid>, uri: Option<AnyUri>) -> Self
pub const fn new(guid: Option<Guid>, uri: Option<AnyUri>) -> Self
Creates the exact XSD contract. Annex E permits both attributes to be absent.
Sourcepub fn identified(
guid: Option<Guid>,
uri: Option<AnyUri>,
) -> Result<Self, ValueError>
pub fn identified( guid: Option<Guid>, uri: Option<AnyUri>, ) -> Result<Self, ValueError>
Creates a semantically identified reference, rejecting the XSD-valid empty state.
pub const fn is_empty(&self) -> bool
Trait Implementations§
impl Eq for Reference
impl StructuralPartialEq for Reference
Auto Trait Implementations§
impl Freeze for Reference
impl RefUnwindSafe for Reference
impl Send for Reference
impl Sync for Reference
impl Unpin for Reference
impl UnwindSafe for Reference
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