[−][src]Struct license::Conditions
The conditions of the license.
Examples
let mit = license::from_id_ext("MIT").unwrap(); let cond = mit.conditions(); assert!(cond.license_and_copyright_notice());
Implementations
impl Conditions
[src]
pub const fn disclose_sources(self) -> bool
[src]
Source code must be made available when the software is distributed.
pub const fn document_changes(self) -> bool
[src]
Changes made to the code must be documented.
pub const fn license_and_copyright_notice(self) -> bool
[src]
The license and copyright notice must be included with the software.
pub const fn network_use_is_distribution(self) -> bool
[src]
Users who interact with the software via network are given the right to receive a copy of the source code.
pub const fn same_license(self) -> bool
[src]
Modifications must be released under the same license.
Trait Implementations
impl Clone for Conditions
[src]
fn clone(&self) -> Conditions
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for Conditions
[src]
impl Debug for Conditions
[src]
impl Default for Conditions
[src]
fn default() -> Conditions
[src]
impl Display for Conditions
[src]
impl Eq for Conditions
[src]
impl Hash for Conditions
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl Ord for Conditions
[src]
fn cmp(&self, other: &Conditions) -> Ordering
[src]
#[must_use]fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn clamp(self, min: Self, max: Self) -> Self
[src]
impl PartialEq<Conditions> for Conditions
[src]
fn eq(&self, other: &Conditions) -> bool
[src]
fn ne(&self, other: &Conditions) -> bool
[src]
impl PartialOrd<Conditions> for Conditions
[src]
fn partial_cmp(&self, other: &Conditions) -> Option<Ordering>
[src]
fn lt(&self, other: &Conditions) -> bool
[src]
fn le(&self, other: &Conditions) -> bool
[src]
fn gt(&self, other: &Conditions) -> bool
[src]
fn ge(&self, other: &Conditions) -> bool
[src]
impl StructuralEq for Conditions
[src]
impl StructuralPartialEq for Conditions
[src]
Auto Trait Implementations
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,