#[non_exhaustive]pub struct CompoundUnit {
pub identity: Resource,
pub identified: IdentifiedData,
pub top_level: TopLevelData,
pub unit: UnitData,
}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§unit: UnitDataImplementations§
Source§impl CompoundUnit
impl CompoundUnit
pub fn builder( namespace: impl TryInto<Namespace, Error = LexError>, display_id: impl TryInto<DisplayId, Error = LexError>, ) -> Result<CompoundUnitBuilder, BuildError>
pub fn new( namespace: impl TryInto<Namespace, Error = LexError>, display_id: impl TryInto<DisplayId, Error = LexError>, label: impl Into<String>, symbol: impl Into<String>, ) -> Result<Self, BuildError>
Trait Implementations§
Source§impl Clone for CompoundUnit
impl Clone for CompoundUnit
Source§impl Debug for CompoundUnit
impl Debug for CompoundUnit
impl Eq for CompoundUnit
Source§impl PartialEq for CompoundUnit
impl PartialEq for CompoundUnit
Source§impl SbolIdentified for CompoundUnit
impl SbolIdentified for CompoundUnit
Source§fn identified_data(&self) -> &IdentifiedData
fn identified_data(&self) -> &IdentifiedData
Returns the underlying
IdentifiedData this accessor reads from.Source§fn persistent_identity(&self) -> Option<&Resource>
fn persistent_identity(&self) -> Option<&Resource>
The object’s
sbol:persistentIdentity, if present.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
dcterms: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 CompoundUnit
impl SbolTopLevel for CompoundUnit
Source§fn top_level_data(&self) -> &TopLevelData
fn top_level_data(&self) -> &TopLevelData
Returns the underlying
TopLevelData this accessor reads from.Source§fn attachments(&self) -> &[Resource]
fn attachments(&self) -> &[Resource]
sbol:Attachment resources attached via sbol:attachment.impl StructuralPartialEq for CompoundUnit
Source§impl ToRdf for CompoundUnit
impl ToRdf for CompoundUnit
fn to_rdf_triples(&self) -> Result<Vec<Triple>, BuildError>
Source§impl TryFromObject for CompoundUnit
impl TryFromObject for CompoundUnit
fn try_from_object(object: &Object) -> Option<Self>
Auto Trait Implementations§
impl Freeze for CompoundUnit
impl RefUnwindSafe for CompoundUnit
impl Send for CompoundUnit
impl Sync for CompoundUnit
impl Unpin for CompoundUnit
impl UnsafeUnpin for CompoundUnit
impl UnwindSafe for CompoundUnit
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