pub struct LeanWorkerDeclarationSearchBias {
pub scope: LeanWorkerDeclarationSearchScope,
pub prefix: String,
pub strict: bool,
pub weight: i32,
}Expand description
Optional namespace/module preference for declaration search.
Non-strict biases affect ranking only. Strict biases act as filters.
Fields§
§scope: LeanWorkerDeclarationSearchScope§prefix: String§strict: bool§weight: i32Trait Implementations§
Source§impl Clone for LeanWorkerDeclarationSearchBias
impl Clone for LeanWorkerDeclarationSearchBias
Source§fn clone(&self) -> LeanWorkerDeclarationSearchBias
fn clone(&self) -> LeanWorkerDeclarationSearchBias
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<'de> Deserialize<'de> for LeanWorkerDeclarationSearchBias
impl<'de> Deserialize<'de> for LeanWorkerDeclarationSearchBias
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<LeanWorkerDeclarationSearchBias, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<LeanWorkerDeclarationSearchBias, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for LeanWorkerDeclarationSearchBias
Source§impl PartialEq for LeanWorkerDeclarationSearchBias
impl PartialEq for LeanWorkerDeclarationSearchBias
Source§fn eq(&self, other: &LeanWorkerDeclarationSearchBias) -> bool
fn eq(&self, other: &LeanWorkerDeclarationSearchBias) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for LeanWorkerDeclarationSearchBias
impl Serialize for LeanWorkerDeclarationSearchBias
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for LeanWorkerDeclarationSearchBias
Auto Trait Implementations§
impl Freeze for LeanWorkerDeclarationSearchBias
impl RefUnwindSafe for LeanWorkerDeclarationSearchBias
impl Send for LeanWorkerDeclarationSearchBias
impl Sync for LeanWorkerDeclarationSearchBias
impl Unpin for LeanWorkerDeclarationSearchBias
impl UnsafeUnpin for LeanWorkerDeclarationSearchBias
impl UnwindSafe for LeanWorkerDeclarationSearchBias
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