pub struct LocationSegment {
pub range_start: u64,
pub range_end: u64,
pub path: Option<String>,
}Expand description
A location segment as returned by get-location-segments.
Fields§
§range_start: u64Start revision of the segment (inclusive).
range_end: u64End revision of the segment (inclusive).
path: Option<String>Repository path for this segment, or None for gaps.
Trait Implementations§
Source§impl Clone for LocationSegment
impl Clone for LocationSegment
Source§fn clone(&self) -> LocationSegment
fn clone(&self) -> LocationSegment
Returns a duplicate of the value. Read more
1.0.0 · 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 LocationSegment
impl Debug for LocationSegment
Source§impl<'de> Deserialize<'de> for LocationSegment
impl<'de> Deserialize<'de> for LocationSegment
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for LocationSegment
impl PartialEq for LocationSegment
Source§impl Serialize for LocationSegment
impl Serialize for LocationSegment
impl Eq for LocationSegment
impl StructuralPartialEq for LocationSegment
Auto Trait Implementations§
impl Freeze for LocationSegment
impl RefUnwindSafe for LocationSegment
impl Send for LocationSegment
impl Sync for LocationSegment
impl Unpin for LocationSegment
impl UnsafeUnpin for LocationSegment
impl UnwindSafe for LocationSegment
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