pub struct DocumentContext {
pub children: Option<Vec<ContextSpanned<ContextChild>>>,
pub collections: Option<Vec<ContextSpanned<ContextCollection>>>,
pub capabilities: Option<Vec<ContextSpanned<ContextCapability>>>,
pub use: Option<Vec<ContextSpanned<ContextUse>>>,
pub expose: Option<Vec<ContextSpanned<ContextExpose>>>,
pub offer: Option<Vec<ContextSpanned<ContextOffer>>>,
}Fields§
§children: Option<Vec<ContextSpanned<ContextChild>>>§collections: Option<Vec<ContextSpanned<ContextCollection>>>§capabilities: Option<Vec<ContextSpanned<ContextCapability>>>§use: Option<Vec<ContextSpanned<ContextUse>>>§expose: Option<Vec<ContextSpanned<ContextExpose>>>§offer: Option<Vec<ContextSpanned<ContextOffer>>>Implementations§
Source§impl DocumentContext
impl DocumentContext
pub fn merge_from(&mut self, other: DocumentContext)
pub fn all_storage_with_sources<'a>( &'a self, ) -> HashMap<&'a BorrowedName, &'a CapabilityFromRef>
pub fn all_capability_names(&self) -> HashSet<&BorrowedName>
pub fn all_collection_names(&self) -> HashSet<&BorrowedName>
pub fn all_children_names(&self) -> HashSet<&BorrowedName>
pub fn all_dictionaries<'a>( &'a self, ) -> HashMap<&'a BorrowedName, &'a ContextCapability>
Trait Implementations§
Source§impl Debug for DocumentContext
impl Debug for DocumentContext
Source§impl Default for DocumentContext
impl Default for DocumentContext
Source§fn default() -> DocumentContext
fn default() -> DocumentContext
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for DocumentContext
impl RefUnwindSafe for DocumentContext
impl Send for DocumentContext
impl Sync for DocumentContext
impl Unpin for DocumentContext
impl UnwindSafe for DocumentContext
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
Source§impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
Source§impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
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