pub struct PackageMeta {
pub desc: Option<&'static str>,
pub ctan: Option<&'static str>,
}Expand description
CTAN metadata for one package/class stem: an optional one-line description and
the CTAN catalogue id (for a https://ctan.org/pkg/<id> URL). Field values are
&'static str so the whole map is a compile-time phf constant.
Fields§
§desc: Option<&'static str>The package’s one-line shortdesc, absent when tlpdb carried none.
ctan: Option<&'static str>The CTAN catalogue id (defaults to the package name in the generator), absent only for a malformed entry.
Implementations§
Trait Implementations§
Source§impl Clone for PackageMeta
impl Clone for PackageMeta
Source§fn clone(&self) -> PackageMeta
fn clone(&self) -> PackageMeta
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 PackageMeta
Auto Trait Implementations§
impl Freeze for PackageMeta
impl RefUnwindSafe for PackageMeta
impl Send for PackageMeta
impl Sync for PackageMeta
impl Unpin for PackageMeta
impl UnsafeUnpin for PackageMeta
impl UnwindSafe for PackageMeta
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