enum PackageKeyword {
Relation(RelationKeyword),
SharedMeta(SharedMetaKeyword),
}
Expand description
The combination of all keywords that’re valid in the scope of a package
section.
Variants§
Relation(RelationKeyword)
Implementations§
Source§impl PackageKeyword
impl PackageKeyword
Sourcepub fn parser(input: &mut &str) -> ModalResult<PackageKeyword>
pub fn parser(input: &mut &str) -> ModalResult<PackageKeyword>
Recognizes any of the PackageKeyword
in an input string slice.
Does not consume input and stops after any keyword matches.
§Errors
Returns an error, if an unknown keyword is encountered.
Auto Trait Implementations§
impl Freeze for PackageKeyword
impl RefUnwindSafe for PackageKeyword
impl Send for PackageKeyword
impl Sync for PackageKeyword
impl Unpin for PackageKeyword
impl UnwindSafe for PackageKeyword
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