pub struct ComponentInstanceId(/* private fields */);Expand description
The identity of one component instance in the compiled robot.
Implementations§
Source§impl ComponentInstanceId
impl ComponentInstanceId
Sourcepub const KIND: &'static str = "component instance id"
pub const KIND: &'static str = "component instance id"
What this identifier names, used in diagnostics.
Sourcepub fn new(
value: impl Into<String>,
) -> Result<ComponentInstanceId, TopologyIdError>
pub fn new( value: impl Into<String>, ) -> Result<ComponentInstanceId, TopologyIdError>
Validate and construct the identifier.
Trait Implementations§
Source§impl AsRef<str> for ComponentInstanceId
impl AsRef<str> for ComponentInstanceId
Source§impl Borrow<str> for ComponentInstanceId
impl Borrow<str> for ComponentInstanceId
Source§impl Clone for ComponentInstanceId
impl Clone for ComponentInstanceId
Source§fn clone(&self) -> ComponentInstanceId
fn clone(&self) -> ComponentInstanceId
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 ComponentInstanceId
impl Debug for ComponentInstanceId
Source§impl DescribeWire for ComponentInstanceId
impl DescribeWire for ComponentInstanceId
Source§fn wire_schema() -> WireSchema
fn wire_schema() -> WireSchema
The shape a value of this type puts on the wire.
Source§impl<'de> Deserialize<'de> for ComponentInstanceId
impl<'de> Deserialize<'de> for ComponentInstanceId
Source§fn deserialize<D>(
deserializer: D,
) -> Result<ComponentInstanceId, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>(
deserializer: D,
) -> Result<ComponentInstanceId, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for ComponentInstanceId
impl Display for ComponentInstanceId
impl Eq for ComponentInstanceId
Source§impl FromStr for ComponentInstanceId
impl FromStr for ComponentInstanceId
Source§type Err = TopologyIdError
type Err = TopologyIdError
The associated error which can be returned from parsing.
Source§fn from_str(
value: &str,
) -> Result<ComponentInstanceId, <ComponentInstanceId as FromStr>::Err>
fn from_str( value: &str, ) -> Result<ComponentInstanceId, <ComponentInstanceId as FromStr>::Err>
Parses a string
s to return a value of this type. Read moreSource§impl Hash for ComponentInstanceId
impl Hash for ComponentInstanceId
Source§impl Ord for ComponentInstanceId
impl Ord for ComponentInstanceId
Source§fn cmp(&self, other: &ComponentInstanceId) -> Ordering
fn cmp(&self, other: &ComponentInstanceId) -> 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 ComponentInstanceId
impl PartialEq for ComponentInstanceId
Source§impl PartialEq<&str> for ComponentInstanceId
impl PartialEq<&str> for ComponentInstanceId
Source§impl PartialEq<str> for ComponentInstanceId
impl PartialEq<str> for ComponentInstanceId
Source§impl PartialOrd for ComponentInstanceId
impl PartialOrd for ComponentInstanceId
Source§impl Serialize for ComponentInstanceId
impl Serialize for ComponentInstanceId
Source§fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for ComponentInstanceId
Source§impl TryFrom<String> for ComponentInstanceId
impl TryFrom<String> for ComponentInstanceId
Source§type Error = TopologyIdError
type Error = TopologyIdError
The type returned in the event of a conversion error.
Source§fn try_from(
value: String,
) -> Result<ComponentInstanceId, <ComponentInstanceId as TryFrom<String>>::Error>
fn try_from( value: String, ) -> Result<ComponentInstanceId, <ComponentInstanceId as TryFrom<String>>::Error>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for ComponentInstanceId
impl RefUnwindSafe for ComponentInstanceId
impl Send for ComponentInstanceId
impl Sync for ComponentInstanceId
impl Unpin for ComponentInstanceId
impl UnsafeUnpin for ComponentInstanceId
impl UnwindSafe for ComponentInstanceId
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