pub struct SatelliteRelation { /* private fields */ }Implementations§
Source§impl SatelliteRelation
impl SatelliteRelation
Sourcepub fn new(
parent_identifier: impl AsRef<str>,
satellite_identifier: impl AsRef<str>,
) -> Result<Self, MoonTextError>
pub fn new( parent_identifier: impl AsRef<str>, satellite_identifier: impl AsRef<str>, ) -> Result<Self, MoonTextError>
Creates a relation between non-empty parent and satellite identifiers.
§Errors
Returns MoonTextError::EmptyParentIdentifier when the trimmed parent identifier is empty,
or MoonTextError::EmptySatelliteIdentifier when the trimmed satellite identifier is empty.
pub fn parent_identifier(&self) -> &str
pub fn satellite_identifier(&self) -> &str
Trait Implementations§
Source§impl Clone for SatelliteRelation
impl Clone for SatelliteRelation
Source§fn clone(&self) -> SatelliteRelation
fn clone(&self) -> SatelliteRelation
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 SatelliteRelation
impl Debug for SatelliteRelation
Source§impl Hash for SatelliteRelation
impl Hash for SatelliteRelation
Source§impl Ord for SatelliteRelation
impl Ord for SatelliteRelation
Source§fn cmp(&self, other: &SatelliteRelation) -> Ordering
fn cmp(&self, other: &SatelliteRelation) -> Ordering
1.21.0 (const: unstable) · 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 SatelliteRelation
impl PartialEq for SatelliteRelation
Source§fn eq(&self, other: &SatelliteRelation) -> bool
fn eq(&self, other: &SatelliteRelation) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for SatelliteRelation
impl PartialOrd for SatelliteRelation
impl Eq for SatelliteRelation
impl StructuralPartialEq for SatelliteRelation
Auto Trait Implementations§
impl Freeze for SatelliteRelation
impl RefUnwindSafe for SatelliteRelation
impl Send for SatelliteRelation
impl Sync for SatelliteRelation
impl Unpin for SatelliteRelation
impl UnsafeUnpin for SatelliteRelation
impl UnwindSafe for SatelliteRelation
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