pub struct RequireTarget(/* private fields */);Expand description
A well-formed require target, such as lib.index.
Valid targets are non-empty, at most 128 bytes, and contain only ASCII letters, digits,
underscores, hyphens and dots. A dot separates path components. Leading and trailing dots and
any empty component are rejected, which is what makes .. unrepresentable.
Implementations§
Source§impl RequireTarget
impl RequireTarget
Trait Implementations§
Source§impl Clone for RequireTarget
impl Clone for RequireTarget
Source§fn clone(&self) -> RequireTarget
fn clone(&self) -> RequireTarget
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 RequireTarget
impl Debug for RequireTarget
Source§impl Display for RequireTarget
impl Display for RequireTarget
impl Eq for RequireTarget
Source§impl Hash for RequireTarget
impl Hash for RequireTarget
Source§impl Ord for RequireTarget
impl Ord for RequireTarget
Source§fn cmp(&self, other: &RequireTarget) -> Ordering
fn cmp(&self, other: &RequireTarget) -> 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 RequireTarget
impl PartialEq for RequireTarget
Source§impl PartialOrd for RequireTarget
impl PartialOrd for RequireTarget
impl StructuralPartialEq for RequireTarget
Auto Trait Implementations§
impl Freeze for RequireTarget
impl RefUnwindSafe for RequireTarget
impl Send for RequireTarget
impl Sync for RequireTarget
impl Unpin for RequireTarget
impl UnsafeUnpin for RequireTarget
impl UnwindSafe for RequireTarget
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more