Struct TaskPath

Source
pub struct TaskPath { /* private fields */ }
Expand description

Represents a path to a task

Implementations§

Source§

impl TaskPath

Source

pub fn new(path: &str) -> &TaskPath

Create a new task path from a string

Source

pub fn project(&self) -> &ProjectPath

Gets the project part of the task path, if it exists.

Source

pub fn task(&self) -> &str

Gets the task component itself

Trait Implementations§

Source§

impl AsRef<TaskPath> for &str

Source§

fn as_ref(&self) -> &TaskPath

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<TaskPath> for TaskPath

Source§

fn as_ref(&self) -> &TaskPath

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<TaskPath> for TaskPathBuf

Source§

fn as_ref(&self) -> &TaskPath

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<str> for TaskPath

Source§

fn as_ref(&self) -> &str

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl Borrow<TaskPath> for TaskPathBuf

Source§

fn borrow(&self) -> &TaskPath

Immutably borrows from an owned value. Read more
Source§

impl Debug for TaskPath

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
Source§

impl Display for TaskPath

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
Source§

impl From<&TaskPath> for TaskPathBuf

Source§

fn from(value: &TaskPath) -> TaskPathBuf

Converts to this type from the input type.
Source§

impl Hash for TaskPath

Source§

fn hash<__H>(&self, state: &mut __H)
where __H: Hasher,

Feeds this value into the given Hasher. Read more
Source§

impl PartialEq for TaskPath

Source§

fn eq(&self, other: &TaskPath) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl ToOwned for TaskPath

Source§

type Owned = TaskPathBuf

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> <TaskPath as ToOwned>::Owned

Creates owned data from borrowed data, usually by cloning. Read more
1.63.0 · Source§

fn clone_into(&self, target: &mut Self::Owned)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl Eq for TaskPath

Source§

impl StructuralPartialEq for TaskPath

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
Source§

impl<T> InstanceOf for T
where T: Any + ?Sized,

Source§

fn instance_of<T>(&self) -> bool
where T: Any + ?Sized,

Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more