#[non_exhaustive]pub enum CurveLicense {
PublicDomain,
Free,
Other,
Unknown,
}Expand description
A curve’s data license, as ThrustCurve records it. ThrustCurve’s API leaves the key out when no
license is recorded, which reads as CurveLicense::Unknown.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
PublicDomain
Public domain.
Free
“Free”: by ThrustCurve’s definition this includes GPL and Creative Commons terms.
Other
Other, restricted terms.
Unknown
No license recorded.
Implementations§
Source§impl CurveLicense
impl CurveLicense
Sourcepub fn is_bundleable(self) -> bool
pub fn is_bundleable(self) -> bool
Whether a curve under this license may be bundled in this MIT OR Apache-2.0 crate: only
public domain. “Free” can mean GPL, and the others are restricted or unknown.
Trait Implementations§
Source§impl Clone for CurveLicense
impl Clone for CurveLicense
Source§fn clone(&self) -> CurveLicense
fn clone(&self) -> CurveLicense
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for CurveLicense
Source§impl Debug for CurveLicense
impl Debug for CurveLicense
Source§impl Default for CurveLicense
impl Default for CurveLicense
Source§fn default() -> CurveLicense
fn default() -> CurveLicense
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CurveLicense
impl<'de> Deserialize<'de> for CurveLicense
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for CurveLicense
Source§impl Hash for CurveLicense
impl Hash for CurveLicense
Source§impl PartialEq for CurveLicense
impl PartialEq for CurveLicense
Source§fn eq(&self, other: &CurveLicense) -> bool
fn eq(&self, other: &CurveLicense) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for CurveLicense
impl Serialize for CurveLicense
impl StructuralPartialEq for CurveLicense
Auto Trait Implementations§
impl Freeze for CurveLicense
impl RefUnwindSafe for CurveLicense
impl Send for CurveLicense
impl Sync for CurveLicense
impl Unpin for CurveLicense
impl UnsafeUnpin for CurveLicense
impl UnwindSafe for CurveLicense
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