#[non_exhaustive]pub struct BinaryPrefix {
pub identity: Resource,
pub identified: IdentifiedData,
pub top_level: TopLevelData,
pub prefix: PrefixData,
}Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.identity: Resource§identified: IdentifiedData§top_level: TopLevelData§prefix: PrefixDataImplementations§
Source§impl BinaryPrefix
impl BinaryPrefix
pub fn new( namespace: impl TryInto<Namespace, Error = BuildError>, display_id: impl TryInto<DisplayId, Error = BuildError>, label: impl Into<String>, symbol: impl Into<String>, has_factor: f64, ) -> Result<Self, BuildError>
pub fn builder( namespace: impl TryInto<Namespace, Error = BuildError>, display_id: impl TryInto<DisplayId, Error = BuildError>, ) -> Result<BinaryPrefixBuilder, BuildError>
Trait Implementations§
Source§impl Clone for BinaryPrefix
impl Clone for BinaryPrefix
Source§fn clone(&self) -> BinaryPrefix
fn clone(&self) -> BinaryPrefix
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 moreSource§impl Debug for BinaryPrefix
impl Debug for BinaryPrefix
Source§impl PartialEq for BinaryPrefix
impl PartialEq for BinaryPrefix
Source§fn eq(&self, other: &BinaryPrefix) -> bool
fn eq(&self, other: &BinaryPrefix) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl SbolIdentified for BinaryPrefix
impl SbolIdentified for BinaryPrefix
Source§fn identified_data(&self) -> &IdentifiedData
fn identified_data(&self) -> &IdentifiedData
Returns the underlying
IdentifiedData this accessor reads from.
Implementors only need to forward to their identified field.Source§fn display_id(&self) -> Option<&str>
fn display_id(&self) -> Option<&str>
The object’s
sbol:displayId, if present.Source§fn description(&self) -> Option<&str>
fn description(&self) -> Option<&str>
The object’s
sbol:description, if present.Source§fn derived_from(&self) -> &[Resource]
fn derived_from(&self) -> &[Resource]
Resources this object lists as
prov:wasDerivedFrom.Source§fn generated_by(&self) -> &[Resource]
fn generated_by(&self) -> &[Resource]
Resources this object lists as
prov:wasGeneratedBy.Source§fn extensions(&self) -> &[ExtensionTriple]
fn extensions(&self) -> &[ExtensionTriple]
Non-SBOL annotation triples preserved on this object’s identity.
Source§impl SbolTopLevel for BinaryPrefix
impl SbolTopLevel for BinaryPrefix
Source§fn top_level_data(&self) -> &TopLevelData
fn top_level_data(&self) -> &TopLevelData
Returns the underlying
TopLevelData this accessor reads from.
Implementors only need to forward to their top_level field.Source§fn namespace(&self) -> Option<&Iri>
fn namespace(&self) -> Option<&Iri>
The object’s
sbol:hasNamespace, if present. TopLevel objects in
well-formed SBOL documents always carry a namespace, but the
underlying graph may omit it — callers that require a namespace
should validate the document first.Source§fn attachments(&self) -> &[Resource]
fn attachments(&self) -> &[Resource]
sbol:Attachment resources attached via sbol:hasAttachment.Source§impl ToRdf for BinaryPrefix
impl ToRdf for BinaryPrefix
fn to_rdf_triples(&self) -> Result<Vec<Triple>, BuildError>
Source§impl TryFromObject for BinaryPrefix
impl TryFromObject for BinaryPrefix
fn try_from_object(object: &Object) -> Option<Self>
impl Eq for BinaryPrefix
impl StructuralPartialEq for BinaryPrefix
Auto Trait Implementations§
impl Freeze for BinaryPrefix
impl RefUnwindSafe for BinaryPrefix
impl Send for BinaryPrefix
impl Sync for BinaryPrefix
impl Unpin for BinaryPrefix
impl UnsafeUnpin for BinaryPrefix
impl UnwindSafe for BinaryPrefix
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