pub struct ProjectResource<T> { /* private fields */ }Expand description
One named top-level resource with key and definition provenance kept separately.
Implementations§
Source§impl<T> ProjectResource<T>
impl<T> ProjectResource<T>
Sourcepub const fn name(&self) -> &ProjectKey
pub const fn name(&self) -> &ProjectKey
Returns the model name and all authored key locations.
Sourcepub const fn definition(&self) -> &ProjectValue<T>
pub const fn definition(&self) -> &ProjectValue<T>
Returns the native effective definition and its merge provenance.
Trait Implementations§
Source§impl<T: Clone> Clone for ProjectResource<T>
impl<T: Clone> Clone for ProjectResource<T>
Source§fn clone(&self) -> ProjectResource<T>
fn clone(&self) -> ProjectResource<T>
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<T: Debug> Debug for ProjectResource<T>
impl<T: Debug> Debug for ProjectResource<T>
impl<T: Eq> Eq for ProjectResource<T>
Source§impl<T: PartialEq> PartialEq for ProjectResource<T>
impl<T: PartialEq> PartialEq for ProjectResource<T>
impl<T: PartialEq> StructuralPartialEq for ProjectResource<T>
Auto Trait Implementations§
impl<T> Freeze for ProjectResource<T>where
T: Freeze,
impl<T> RefUnwindSafe for ProjectResource<T>where
T: RefUnwindSafe,
impl<T> Send for ProjectResource<T>where
T: Send,
impl<T> Sync for ProjectResource<T>where
T: Sync,
impl<T> Unpin for ProjectResource<T>where
T: Unpin,
impl<T> UnsafeUnpin for ProjectResource<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for ProjectResource<T>where
T: UnwindSafe,
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