pub struct Pin {
pub version: Version,
pub spelled: String,
pub venue: Option<Venue>,
pub line: usize,
pub lines: usize,
pub span: (usize, usize),
}Expand description
One recorded pin, located in its file.
Fields§
§version: VersionThe released triple the pin names.
spelled: StringThe version as the file spells it, v prefix included where present.
venue: Option<Venue>The venue the entry’s form selects, where the form says.
line: usizeThe one-based line the pin sits on.
lines: usizeHow many lines in the file pin this tool.
span: (usize, usize)The byte span of the spelled version in the file text.
Trait Implementations§
impl Eq for Pin
impl StructuralPartialEq for Pin
Auto Trait Implementations§
impl Freeze for Pin
impl RefUnwindSafe for Pin
impl Send for Pin
impl Sync for Pin
impl Unpin for Pin
impl UnsafeUnpin for Pin
impl UnwindSafe for Pin
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.