Skip to content

Commit

Permalink
add
Browse files Browse the repository at this point in the history
  • Loading branch information
LaurenzV committed Aug 17, 2024
1 parent 46afbac commit ef74009
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,47 @@ pub mod types {
pub use xobject::SMaskInData;
}

/// Dummy
pub mod traits {
use crate::writers::{FormXObject, Page, Pages, Resources, TilingPattern, Type3Font};

/// Dummy
pub trait ResourcesExt {
/// Dummy
fn resources(&mut self) -> Resources<'_>;
}

impl ResourcesExt for FormXObject<'_> {
fn resources(&mut self) -> Resources<'_> {
self.resources()
}
}

impl ResourcesExt for TilingPattern<'_> {
fn resources(&mut self) -> Resources<'_> {
self.resources()
}
}

impl ResourcesExt for Type3Font<'_> {
fn resources(&mut self) -> Resources<'_> {
self.resources()
}
}

impl ResourcesExt for Pages<'_> {
fn resources(&mut self) -> Resources<'_> {
self.resources()
}
}

impl ResourcesExt for Page<'_> {
fn resources(&mut self) -> Resources<'_> {
self.resources()
}
}
}

pub use self::chunk::Chunk;
pub use self::content::Content;
pub use self::object::{
Expand Down

0 comments on commit ef74009

Please sign in to comment.