pub struct PublishedDerived { /* private fields */ }Expand description
A record’s nested resources (crate::child::record_nested_children)
and derived ones (Derived) as published, with the declarations they
offer with arguments bound.
Implementations§
Source§impl PublishedDerived
impl PublishedDerived
Sourcepub fn resources(&self) -> &Rc<[Rc<ResourceSpec>]>
pub fn resources(&self) -> &Rc<[Rc<ResourceSpec>]>
The published resources, in order: each the very one published last while the derived resource it publishes is unchanged.
Sourcepub fn offers_bound(&self, id: &str, params: usize) -> bool
pub fn offers_bound(&self, id: &str, params: usize) -> bool
Whether some resource offers the declaration id with params
parameters with some of its arguments bound.
Sourcepub fn to_resources(&self) -> Vec<ResourceSpec>
pub fn to_resources(&self) -> Vec<ResourceSpec>
Copies of the published resources, in order.
Sourcepub fn find(&self, id: &str) -> Option<ResourceSpec>
pub fn find(&self, id: &str) -> Option<ResourceSpec>
The published resource id among them and their children.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for PublishedDerived
impl !Send for PublishedDerived
impl !Sync for PublishedDerived
impl !UnwindSafe for PublishedDerived
impl Forget for PublishedDerived
impl Freeze for PublishedDerived
impl Move for PublishedDerived
impl Unpin for PublishedDerived
impl UnsafeUnpin for PublishedDerived
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
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