pub struct NameComponent {
pub id: String,
pub kind: String,
}Expand description
CosNaming::NameComponent: one step of a Name.
Fields§
§id: StringThe identifier.
kind: StringThe kind, often empty.
Implementations§
Source§impl NameComponent
impl NameComponent
Sourcepub fn new(id: impl Into<String>, kind: impl Into<String>) -> NameComponent
pub fn new(id: impl Into<String>, kind: impl Into<String>) -> NameComponent
A component with id and kind.
Sourcepub fn write(&self, out: &mut OutStream<'_>) -> Result<(), SystemException>
pub fn write(&self, out: &mut OutStream<'_>) -> Result<(), SystemException>
Writes the component as the NameComponent struct.
Sourcepub fn read(input: &mut InStream<'_>) -> Result<NameComponent, SystemException>
pub fn read(input: &mut InStream<'_>) -> Result<NameComponent, SystemException>
Reads a NameComponent struct.
Trait Implementations§
Source§impl Clone for NameComponent
impl Clone for NameComponent
Source§fn clone(&self) -> NameComponent
fn clone(&self) -> NameComponent
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 NameComponent
impl Debug for NameComponent
Source§impl Default for NameComponent
impl Default for NameComponent
Source§fn default() -> NameComponent
fn default() -> NameComponent
Returns the “default value” for a type. Read more
impl Eq for NameComponent
Source§impl Hash for NameComponent
impl Hash for NameComponent
Source§impl Ord for NameComponent
impl Ord for NameComponent
Source§fn cmp(&self, other: &NameComponent) -> Ordering
fn cmp(&self, other: &NameComponent) -> 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
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for NameComponent
impl PartialEq for NameComponent
Source§impl PartialOrd for NameComponent
impl PartialOrd for NameComponent
impl StructuralPartialEq for NameComponent
Auto Trait Implementations§
impl Forget for NameComponent
impl Freeze for NameComponent
impl RefUnwindSafe for NameComponent
impl Send for NameComponent
impl Sync for NameComponent
impl Unpin for NameComponent
impl UnsafeUnpin for NameComponent
impl UnwindSafe for NameComponent
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