pub struct TargetReference<T>(/* private fields */);Expand description
The stable name of a target, as programs and arguments refer to it — of
the part itself, or of a part placed in it, behind the instance’s path
(Located): /:model, /bolt:model — and the type of its value.
Implementations§
Source§impl<T> TargetReference<T>
impl<T> TargetReference<T>
Sourcepub fn parse(text: &str) -> GeopResult<Self>
pub fn parse(text: &str) -> GeopResult<Self>
The target text spells (Located::parse).
Sourcepub fn behind(&self, instance: &str) -> Self
pub fn behind(&self, instance: &str) -> Self
The same target of the instance instance of the part (see
Located::behind).
Trait Implementations§
Source§impl<T> Clone for TargetReference<T>
impl<T> Clone for TargetReference<T>
Source§impl<T> Debug for TargetReference<T>
impl<T> Debug for TargetReference<T>
Source§impl<T> Display for TargetReference<T>
impl<T> Display for TargetReference<T>
impl<T> Eq for TargetReference<T>
Auto Trait Implementations§
impl<T> Freeze for TargetReference<T>
impl<T> RefUnwindSafe for TargetReference<T>
impl<T> Send for TargetReference<T>
impl<T> Sync for TargetReference<T>
impl<T> Unpin for TargetReference<T>
impl<T> UnsafeUnpin for TargetReference<T>
impl<T> UnwindSafe for TargetReference<T>
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