[][src]Struct license::Limitations

pub struct Limitations { /* fields omitted */ }

The limitations of the license.

Examples

let mit = license::from_id_ext("MIT").unwrap();
let lim = mit.limitations();
assert!(lim.no_liability() && lim.no_warranty());

Methods

impl Limitations[src]

pub const fn no_liability(self) -> bool[src]

Includes a limitation of liability.

pub const fn no_trademark_rights(self) -> bool[src]

Does not grant trademark rights.

pub const fn no_warranty(self) -> bool[src]

Does not provide any warranty.

pub const fn no_patent_rights(self) -> bool[src]

Does not provide any rights in the patents of contributors.

Trait Implementations

impl Clone for Limitations[src]

impl Copy for Limitations[src]

impl Debug for Limitations[src]

impl Default for Limitations[src]

impl Display for Limitations[src]

impl Eq for Limitations[src]

impl Hash for Limitations[src]

impl Ord for Limitations[src]

impl PartialEq<Limitations> for Limitations[src]

impl PartialOrd<Limitations> for Limitations[src]

impl StructuralEq for Limitations[src]

impl StructuralPartialEq for Limitations[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.