pub struct SemanticEditGuard {
pub start: usize,
pub end: usize,
pub declaration_sha256: String,
}Expand description
Exact source span and content hash used to guard semantic source edits.
Fields§
§start: usizeZero-based UTF-8 byte offset where the declaration starts.
end: usizeExclusive zero-based UTF-8 byte offset where the declaration ends.
declaration_sha256: StringLowercase SHA-256 digest of the exact declaration text.
Trait Implementations§
Source§impl Clone for SemanticEditGuard
impl Clone for SemanticEditGuard
Source§impl Debug for SemanticEditGuard
impl Debug for SemanticEditGuard
Source§impl<'de> Deserialize<'de> for SemanticEditGuard
impl<'de> Deserialize<'de> for SemanticEditGuard
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 SemanticEditGuard
Source§impl PartialEq for SemanticEditGuard
impl PartialEq for SemanticEditGuard
Source§impl Serialize for SemanticEditGuard
impl Serialize for SemanticEditGuard
impl StructuralPartialEq for SemanticEditGuard
Auto Trait Implementations§
impl Freeze for SemanticEditGuard
impl RefUnwindSafe for SemanticEditGuard
impl Send for SemanticEditGuard
impl Sync for SemanticEditGuard
impl Unpin for SemanticEditGuard
impl UnsafeUnpin for SemanticEditGuard
impl UnwindSafe for SemanticEditGuard
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.