pub struct ReadingOrderEntry {
pub ref: Option<PathSymbolRef>,
pub start_line: Option<u32>,
pub end_line: Option<u32>,
}Expand description
One symbol in the state-review reading order, with an optional line span so a client holding the full diff can slice hunks to this symbol. PathSymbolRef stays range-free: discussion anchors must not become line-based (api#113).
Fields§
§ref: Option<PathSymbolRef>§start_line: Option<u32>Line span of this symbol in the state being reviewed, 1-based and
inclusive of start_line, exclusive of end_line. Present when the
symbol’s extent is known; absent when it is not, so a client can fall
back to showing the file rather than guessing a slice.
end_line: Option<u32>Implementations§
Trait Implementations§
Source§impl Clone for ReadingOrderEntry
impl Clone for ReadingOrderEntry
Source§fn clone(&self) -> ReadingOrderEntry
fn clone(&self) -> ReadingOrderEntry
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 ReadingOrderEntry
impl Debug for ReadingOrderEntry
Source§impl Default for ReadingOrderEntry
impl Default for ReadingOrderEntry
impl Eq for ReadingOrderEntry
Source§impl Hash for ReadingOrderEntry
impl Hash for ReadingOrderEntry
Source§impl Message for ReadingOrderEntry
impl Message for ReadingOrderEntry
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Encodes the message to a buffer. Read more
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Encodes the message to a newly allocated buffer.
Source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Encodes the message with a length-delimiter to a buffer. Read more
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Encodes the message with a length-delimiter to a newly allocated buffer.
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Decodes an instance of the message from a buffer. Read more
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Decodes a length-delimited instance of the message from the buffer.
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
Decodes an instance of the message from a buffer, and merges it into
self. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
Decodes a length-delimited instance of the message from buffer, and
merges it into
self.Source§impl PartialEq for ReadingOrderEntry
impl PartialEq for ReadingOrderEntry
impl StructuralPartialEq for ReadingOrderEntry
Auto Trait Implementations§
impl Freeze for ReadingOrderEntry
impl RefUnwindSafe for ReadingOrderEntry
impl Send for ReadingOrderEntry
impl Sync for ReadingOrderEntry
impl Unpin for ReadingOrderEntry
impl UnsafeUnpin for ReadingOrderEntry
impl UnwindSafe for ReadingOrderEntry
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