pub struct DependencyContext<'s> { /* private fields */ }Expand description
Owns dependencies and the side-table payloads referenced by them.
Dependency values are intentionally cheap to move. Rare or variable-length
data is appended to context vectors and referenced through DependencyIndex
or DependencyListRange. Consumers should resolve those handles through
this type rather than retaining raw indices independently.
Implementations§
Source§impl<'s> DependencyContext<'s>
impl<'s> DependencyContext<'s>
pub fn new() -> Self
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn get(&self, index: usize) -> Option<&Dependency<'s>>
pub fn iter(&self) -> Iter<'_, Dependency<'s>> ⓘ
pub fn dependencies(&self) -> &[Dependency<'s>]
pub fn dashed_ident_occurrences(&self) -> &[Range]
pub fn import_attributes( &self, index: DependencyIndex<ImportAttributes<'s>>, ) -> &ImportAttributes<'s>
pub fn composes_local_classes( &self, range: DependencyListRange<&'s str>, ) -> &[&'s str]
pub fn composes_names(&self, range: DependencyListRange<&'s str>) -> &[&'s str]
pub fn value_at_rule_import_items(&self) -> &[ValueAtRuleImportItem<'s>]
Trait Implementations§
Source§impl<'s> Clone for DependencyContext<'s>
impl<'s> Clone for DependencyContext<'s>
Source§fn clone(&self) -> DependencyContext<'s>
fn clone(&self) -> DependencyContext<'s>
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<'s> Debug for DependencyContext<'s>
impl<'s> Debug for DependencyContext<'s>
Source§impl<'s> Default for DependencyContext<'s>
impl<'s> Default for DependencyContext<'s>
Source§fn default() -> DependencyContext<'s>
fn default() -> DependencyContext<'s>
Returns the “default value” for a type. Read more
impl Eq for DependencyContext<'_>
Source§impl Hash for DependencyContext<'_>
impl Hash for DependencyContext<'_>
Source§impl<'s> Index<usize> for DependencyContext<'s>
impl<'s> Index<usize> for DependencyContext<'s>
Source§impl<'context, 's> IntoIterator for &'context DependencyContext<'s>
impl<'context, 's> IntoIterator for &'context DependencyContext<'s>
Auto Trait Implementations§
impl<'s> Freeze for DependencyContext<'s>
impl<'s> RefUnwindSafe for DependencyContext<'s>
impl<'s> Send for DependencyContext<'s>
impl<'s> Sync for DependencyContext<'s>
impl<'s> Unpin for DependencyContext<'s>
impl<'s> UnsafeUnpin for DependencyContext<'s>
impl<'s> UnwindSafe for DependencyContext<'s>
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