pub struct Question<P: Position> {
pub position: P,
pub range: Option<P::Range>,
}
Expand description
An inner structure representing a pair of position and range.
Used in variants of AllQuestion
Fields§
§position: P
The position this question matches to.
range: Option<P::Range>
The parsed range
Implementations§
Trait Implementations§
Source§impl<'de, P> Deserialize<'de> for Question<P>
impl<'de, P> Deserialize<'de> for Question<P>
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<P: Eq + Position> Eq for Question<P>
impl<P: Position> StructuralPartialEq for Question<P>
Auto Trait Implementations§
impl<P> Freeze for Question<P>
impl<P> RefUnwindSafe for Question<P>
impl<P> Send for Question<P>
impl<P> Sync for Question<P>
impl<P> Unpin for Question<P>
impl<P> UnwindSafe for Question<P>
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