pub enum License {
Spdx(SpdxLicense),
// some variants omitted
}Expand description
A known license.
Variants§
Spdx(SpdxLicense)
A commonly found license listed here.
Implementations§
Source§impl License
impl License
Sourcepub fn parse<'a, I>(input: I) -> Result<Self, ParseError<'a>>where
I: TryInto<Self, Error = ParseError<'a>>,
pub fn parse<'a, I>(input: I) -> Result<Self, ParseError<'a>>where
I: TryInto<Self, Error = ParseError<'a>>,
Attempts to parse input and returns a ParseError on error.
Trait Implementations§
Source§impl From<SpdxLicense> for License
impl From<SpdxLicense> for License
Source§fn from(l: SpdxLicense) -> Self
fn from(l: SpdxLicense) -> Self
Converts to this type from the input type.
impl Eq for License
impl StructuralPartialEq for License
Auto Trait Implementations§
impl Freeze for License
impl RefUnwindSafe for License
impl Send for License
impl Sync for License
impl Unpin for License
impl UnwindSafe for License
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