pub struct OpLocation {
pub op_id: Cow<'static, str>,
pub operand_idx: Option<u32>,
pub attr_name: Option<Cow<'static, str>>,
}Expand description
Location of a diagnostic inside a Program.
Fields§
§op_id: Cow<'static, str>The op identifier, for example "math.add".
operand_idx: Option<u32>Zero-based operand index, if the diagnostic is about a specific operand.
attr_name: Option<Cow<'static, str>>Attribute name, if the diagnostic is about a specific attribute.
Implementations§
Source§impl OpLocation
impl OpLocation
Trait Implementations§
Source§impl Clone for OpLocation
impl Clone for OpLocation
Source§fn clone(&self) -> OpLocation
fn clone(&self) -> OpLocation
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 OpLocation
impl Debug for OpLocation
Source§impl<'de> Deserialize<'de> for OpLocation
impl<'de> Deserialize<'de> for OpLocation
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
impl Eq for OpLocation
Source§impl PartialEq for OpLocation
impl PartialEq for OpLocation
Source§fn eq(&self, other: &OpLocation) -> bool
fn eq(&self, other: &OpLocation) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for OpLocation
impl Serialize for OpLocation
impl StructuralPartialEq for OpLocation
Auto Trait Implementations§
impl Freeze for OpLocation
impl RefUnwindSafe for OpLocation
impl Send for OpLocation
impl Sync for OpLocation
impl Unpin for OpLocation
impl UnsafeUnpin for OpLocation
impl UnwindSafe for OpLocation
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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.