pub struct Need {
pub name: Token,
pub loc: FileLocation,
pub subject: Reference<Subject, NeedSubject>,
pub content: Rc<str>,
}
Expand description
Need or qualitative requirement.
Fields§
§name: Token
Need’s name or label.
loc: FileLocation
Complete need’s textual location.
subject: Reference<Subject, NeedSubject>
Need’s subject.
content: Rc<str>
Need’s content.
Trait Implementations§
Source§impl<'a> FetchTarget<'a, Need> for NeedTarget
impl<'a> FetchTarget<'a, Need> for NeedTarget
Source§fn fetch_values(
&self,
spec: &'a Specification,
) -> Result<&'a [Need], TargetError<Self>>
fn fetch_values( &self, spec: &'a Specification, ) -> Result<&'a [Need], TargetError<Self>>
Fetch the map reference containing the targeted item.
Source§fn fetch_values_mut(
&self,
spec: &'a mut Specification,
) -> Result<&'a mut [Need], TargetError<Self>>
fn fetch_values_mut( &self, spec: &'a mut Specification, ) -> Result<&'a mut [Need], TargetError<Self>>
Fetch the mutable map reference containing the targeted item.
Source§fn fetch(&self, spec: &'a Specification) -> Result<&'a V, TargetError<Self>>
fn fetch(&self, spec: &'a Specification) -> Result<&'a V, TargetError<Self>>
Fetch a reference to the target from the specification.
Source§fn fetch_mut(
&self,
spec: &'a mut Specification,
) -> Result<&'a mut V, TargetError<Self>>
fn fetch_mut( &self, spec: &'a mut Specification, ) -> Result<&'a mut V, TargetError<Self>>
Fetch a mutable reference to the target from the specification.
impl StructuralPartialEq for Need
Auto Trait Implementations§
impl Freeze for Need
impl RefUnwindSafe for Need
impl !Send for Need
impl !Sync for Need
impl Unpin for Need
impl UnwindSafe for Need
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