pub struct CodeSymbolAddress {
pub path: String,
pub symbol_id: String,
pub definition_index: Option<u32>,
}Expand description
SymbolAnchor’s path + container::path::name spelling at this exact revision. Neither symbol_id nor semantic_hash alone identifies a unique definition.
Fields§
§path: String§symbol_id: String§definition_index: Option<u32>Canonical zero-based SymbolEntry index in this attachment’s file node. Omission resolves by spelling; multiple visible matches are AMBIGUOUS.
Implementations§
Source§impl CodeSymbolAddress
impl CodeSymbolAddress
Sourcepub fn definition_index(&self) -> u32
pub fn definition_index(&self) -> u32
Returns the value of definition_index, or the default value if definition_index is unset.
Trait Implementations§
Source§impl Clone for CodeSymbolAddress
impl Clone for CodeSymbolAddress
Source§impl Debug for CodeSymbolAddress
impl Debug for CodeSymbolAddress
Source§impl Default for CodeSymbolAddress
impl Default for CodeSymbolAddress
impl Eq for CodeSymbolAddress
Source§impl Hash for CodeSymbolAddress
impl Hash for CodeSymbolAddress
Source§impl Message for CodeSymbolAddress
impl Message for CodeSymbolAddress
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 CodeSymbolAddress
impl PartialEq for CodeSymbolAddress
impl StructuralPartialEq for CodeSymbolAddress
Auto Trait Implementations§
impl Freeze for CodeSymbolAddress
impl RefUnwindSafe for CodeSymbolAddress
impl Send for CodeSymbolAddress
impl Sync for CodeSymbolAddress
impl Unpin for CodeSymbolAddress
impl UnsafeUnpin for CodeSymbolAddress
impl UnwindSafe for CodeSymbolAddress
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