pub struct StatementSlice {
pub byte_start: usize,
pub byte_end: usize,
pub kind: StatementKind,
}Expand description
Byte range + coarse kind of one top-level statement in the parsed program. Stable for cross-language consumers (the desktop ships this on the wire to the UI). Byte indices are into the original source string.
Fields§
§byte_start: usize§byte_end: usize§kind: StatementKindTrait Implementations§
Source§impl Clone for StatementSlice
impl Clone for StatementSlice
Source§fn clone(&self) -> StatementSlice
fn clone(&self) -> StatementSlice
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 StatementSlice
impl Debug for StatementSlice
Source§impl<'de> Deserialize<'de> for StatementSlice
impl<'de> Deserialize<'de> for StatementSlice
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 StatementSlice
Source§impl PartialEq for StatementSlice
impl PartialEq for StatementSlice
Source§impl Serialize for StatementSlice
impl Serialize for StatementSlice
impl StructuralPartialEq for StatementSlice
Auto Trait Implementations§
impl Freeze for StatementSlice
impl RefUnwindSafe for StatementSlice
impl Send for StatementSlice
impl Sync for StatementSlice
impl Unpin for StatementSlice
impl UnsafeUnpin for StatementSlice
impl UnwindSafe for StatementSlice
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