pub struct Descriptor<'a> { /* private fields */ }Expand description
Descriptors are just like idents, except that they also contain a range and an additional comparator hash.
Yarn’s parseRange to turn a descriptor string into this data structure,
makeDescriptor to create a new one from an ident and a range, or
stringifyDescriptor to generate a string representation of it.
Implementations§
Source§impl<'a> Descriptor<'a>
impl<'a> Descriptor<'a>
Trait Implementations§
Source§impl<'a> Clone for Descriptor<'a>
impl<'a> Clone for Descriptor<'a>
Source§fn clone(&self) -> Descriptor<'a>
fn clone(&self) -> Descriptor<'a>
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 moreimpl<'a> Copy for Descriptor<'a>
Source§impl<'a> Debug for Descriptor<'a>
impl<'a> Debug for Descriptor<'a>
impl<'a> Eq for Descriptor<'a>
Source§impl<'a> Hash for Descriptor<'a>
impl<'a> Hash for Descriptor<'a>
Source§impl<'a> PartialEq for Descriptor<'a>
impl<'a> PartialEq for Descriptor<'a>
Source§fn eq(&self, other: &Descriptor<'a>) -> bool
fn eq(&self, other: &Descriptor<'a>) -> bool
Tests for
self and other values to be equal, and is used by ==.impl<'a> StructuralPartialEq for Descriptor<'a>
Auto Trait Implementations§
impl<'a> Freeze for Descriptor<'a>
impl<'a> RefUnwindSafe for Descriptor<'a>
impl<'a> Send for Descriptor<'a>
impl<'a> Sync for Descriptor<'a>
impl<'a> Unpin for Descriptor<'a>
impl<'a> UnsafeUnpin for Descriptor<'a>
impl<'a> UnwindSafe for Descriptor<'a>
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