pub struct WriteHandlerRegistration { /* private fields */ }Expand description
与其执行优先级配对的 PdfWriteHandler。
优先级值越小越先执行。优先级相同的处理程序 保持注册顺序(稳定排序)。
Implementations§
Source§impl WriteHandlerRegistration
impl WriteHandlerRegistration
Sourcepub fn new(handler: Box<dyn PdfWriteHandler>, priority: f64) -> Self
pub fn new(handler: Box<dyn PdfWriteHandler>, priority: f64) -> Self
使用给定的处理程序和优先级创建新的注册。
Sourcepub fn handler(&self) -> &dyn PdfWriteHandler
pub fn handler(&self) -> &dyn PdfWriteHandler
借用处理程序。
Sourcepub fn handler_mut(&mut self) -> &mut dyn PdfWriteHandler
pub fn handler_mut(&mut self) -> &mut dyn PdfWriteHandler
可变借用处理程序。
Auto Trait Implementations§
impl !RefUnwindSafe for WriteHandlerRegistration
impl !Sync for WriteHandlerRegistration
impl !UnwindSafe for WriteHandlerRegistration
impl Freeze for WriteHandlerRegistration
impl Send for WriteHandlerRegistration
impl Unpin for WriteHandlerRegistration
impl UnsafeUnpin for WriteHandlerRegistration
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more