pub struct UnitSource {
pub id: String,
pub format: String,
pub units: Vec<SemanticUnit>,
pub path_label: PathLabel,
}Expand description
The functions of one source, as the semantic search needs them.
Fields§
§id: StringSource id; an embedded block keeps its path:format form.
format: String§units: Vec<SemanticUnit>§path_label: PathLabelThe source’s place for the path filters; pairs whose labels skip each other are never compared. Default: filters off.
Trait Implementations§
Source§impl Clone for UnitSource
impl Clone for UnitSource
Auto Trait Implementations§
impl Freeze for UnitSource
impl RefUnwindSafe for UnitSource
impl Send for UnitSource
impl Sync for UnitSource
impl Unpin for UnitSource
impl UnsafeUnpin for UnitSource
impl UnwindSafe for UnitSource
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more