pub struct SearchPattern {
pub conclusion_only: bool,
pub expr: TypeExpr,
}Expand description
A user search pattern, optionally restricted to the conclusion (|-).
Fields§
§conclusion_only: boolWhen true, match only against TypeExpr::conclusion().
expr: TypeExprTrait Implementations§
Source§impl Clone for SearchPattern
impl Clone for SearchPattern
Source§fn clone(&self) -> SearchPattern
fn clone(&self) -> SearchPattern
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 SearchPattern
impl Debug for SearchPattern
impl Eq for SearchPattern
Source§impl PartialEq for SearchPattern
impl PartialEq for SearchPattern
impl StructuralPartialEq for SearchPattern
Auto Trait Implementations§
impl Freeze for SearchPattern
impl RefUnwindSafe for SearchPattern
impl Send for SearchPattern
impl Sync for SearchPattern
impl Unpin for SearchPattern
impl UnsafeUnpin for SearchPattern
impl UnwindSafe for SearchPattern
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