Struct texlab::component_db::ComponentDatabase
source · [−]pub struct ComponentDatabase {
pub components: Vec<Component>,
pub metadata: Vec<ComponentMetadata>,
}
Fields
components: Vec<Component>
metadata: Vec<ComponentMetadata>
Implementations
sourceimpl ComponentDatabase
impl ComponentDatabase
pub fn find(&self, name: &str) -> Option<&Component>
pub fn find_no_ext(&self, name: &str) -> Option<&Component>
pub fn linked_components(&self, workspace: &Workspace) -> Vec<&Component>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
A: Allocator,
A: Allocator,
pub fn contains(&self, short_name: &str) -> bool
pub fn kernel(&self) -> &Component
pub fn exists(&self, file_name: &str) -> bool
pub fn documentation(&self, name: &str) -> Option<MarkupContent>
Trait Implementations
sourceimpl Clone for ComponentDatabase
impl Clone for ComponentDatabase
sourcefn clone(&self) -> ComponentDatabase
fn clone(&self) -> ComponentDatabase
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for ComponentDatabase
impl Debug for ComponentDatabase
sourceimpl<'de> Deserialize<'de> for ComponentDatabase
impl<'de> Deserialize<'de> for ComponentDatabase
sourcefn 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
sourceimpl PartialEq<ComponentDatabase> for ComponentDatabase
impl PartialEq<ComponentDatabase> for ComponentDatabase
sourcefn eq(&self, other: &ComponentDatabase) -> bool
fn eq(&self, other: &ComponentDatabase) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &ComponentDatabase) -> bool
fn ne(&self, other: &ComponentDatabase) -> bool
This method tests for !=
.
sourceimpl Serialize for ComponentDatabase
impl Serialize for ComponentDatabase
impl Eq for ComponentDatabase
impl StructuralEq for ComponentDatabase
impl StructuralPartialEq for ComponentDatabase
Auto Trait Implementations
impl RefUnwindSafe for ComponentDatabase
impl Send for ComponentDatabase
impl Sync for ComponentDatabase
impl Unpin for ComponentDatabase
impl UnwindSafe for ComponentDatabase
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.