Struct debian_copyright::Copyright
source · pub struct Copyright(/* private fields */);Implementations§
source§impl Copyright
impl Copyright
pub fn new() -> Self
pub fn header(&self) -> Option<Header>
pub fn iter_files(&self) -> impl Iterator<Item = FilesParagraph>
pub fn iter_licenses(&self) -> impl Iterator<Item = LicenseParagraph>
sourcepub fn find_files(&self, filename: &Path) -> Option<FilesParagraph>
pub fn find_files(&self, filename: &Path) -> Option<FilesParagraph>
Returns the Files paragraph for the given filename.
Consistent with the specification, this returns the last paragraph that matches (which should be the most specific)
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Copyright
impl !Send for Copyright
impl !Sync for Copyright
impl Unpin for Copyright
impl !UnwindSafe for Copyright
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