pub struct BondEndpoint(/* private fields */);Expand description
A validated atom endpoint reference for a bond.
Implementations§
Source§impl BondEndpoint
impl BondEndpoint
Sourcepub fn new(label: &str) -> Result<Self, BondValidationError>
pub fn new(label: &str) -> Result<Self, BondValidationError>
Creates a bond endpoint label.
§Errors
Returns BondValidationError::EmptyEndpointLabel when label is empty after trimming.
Sourcepub fn into_string(self) -> String
pub fn into_string(self) -> String
Consumes the endpoint and returns the owned label.
Trait Implementations§
Source§impl AsRef<str> for BondEndpoint
impl AsRef<str> for BondEndpoint
Source§impl Clone for BondEndpoint
impl Clone for BondEndpoint
Source§fn clone(&self) -> BondEndpoint
fn clone(&self) -> BondEndpoint
Returns a duplicate of the value. Read more
1.0.0 · 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 BondEndpoint
impl Debug for BondEndpoint
Source§impl Display for BondEndpoint
impl Display for BondEndpoint
Source§impl Hash for BondEndpoint
impl Hash for BondEndpoint
Source§impl Ord for BondEndpoint
impl Ord for BondEndpoint
Source§fn cmp(&self, other: &BondEndpoint) -> Ordering
fn cmp(&self, other: &BondEndpoint) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for BondEndpoint
impl PartialEq for BondEndpoint
Source§impl PartialOrd for BondEndpoint
impl PartialOrd for BondEndpoint
Source§impl TryFrom<&str> for BondEndpoint
impl TryFrom<&str> for BondEndpoint
impl Eq for BondEndpoint
impl StructuralPartialEq for BondEndpoint
Auto Trait Implementations§
impl Freeze for BondEndpoint
impl RefUnwindSafe for BondEndpoint
impl Send for BondEndpoint
impl Sync for BondEndpoint
impl Unpin for BondEndpoint
impl UnsafeUnpin for BondEndpoint
impl UnwindSafe for BondEndpoint
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