pub enum SubscriptKind {
Index(Box<ExprType>),
Slice {
lower: Option<Box<ExprType>>,
upper: Option<Box<ExprType>>,
step: Option<Box<ExprType>>,
},
}Expand description
A subscript’s bracket contents: a plain index or a slice.
Variants§
Trait Implementations§
Source§impl Clone for SubscriptKind
impl Clone for SubscriptKind
Source§fn clone(&self) -> SubscriptKind
fn clone(&self) -> SubscriptKind
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 SubscriptKind
impl Debug for SubscriptKind
Source§impl<'de> Deserialize<'de> for SubscriptKind
impl<'de> Deserialize<'de> for SubscriptKind
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
Source§impl PartialEq for SubscriptKind
impl PartialEq for SubscriptKind
Source§impl Serialize for SubscriptKind
impl Serialize for SubscriptKind
impl StructuralPartialEq for SubscriptKind
Auto Trait Implementations§
impl Freeze for SubscriptKind
impl RefUnwindSafe for SubscriptKind
impl Send for SubscriptKind
impl Sync for SubscriptKind
impl Unpin for SubscriptKind
impl UnsafeUnpin for SubscriptKind
impl UnwindSafe for SubscriptKind
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<T> ErrorContext for Twhere
T: Debug,
impl<T> ErrorContext for Twhere
T: Debug,
Source§fn with_context(&self, operation: &str) -> String
fn with_context(&self, operation: &str) -> String
Generate a standardized error message with context.