pub struct Appearance<'a> { /* private fields */ }
Expand description
Writer for an appearance dictionary.
This struct is created by Annotation::appearance
.
Implementations§
source§impl<'a> Appearance<'a>
impl<'a> Appearance<'a>
sourcepub fn normal(&mut self) -> AppearanceEntry<'_>
pub fn normal(&mut self) -> AppearanceEntry<'_>
Start writing the /N
stream or dictionary to set the annotation’s
normal appearance.
sourcepub fn rollover(&mut self) -> AppearanceEntry<'_>
pub fn rollover(&mut self) -> AppearanceEntry<'_>
Start writing the /R
stream or dictionary to set the annotation’s
rollover (hover) appearance.
sourcepub fn alternate(&mut self) -> AppearanceEntry<'_>
pub fn alternate(&mut self) -> AppearanceEntry<'_>
Start writing the /D
stream or dictionary to set the annotation’s
alternate (down) appearance.
Methods from Deref<Target = Dict<'a>>§
sourcepub fn insert(&mut self, key: Name<'_>) -> Obj<'_>
pub fn insert(&mut self, key: Name<'_>) -> Obj<'_>
Start writing a pair with an arbitrary value.
sourcepub fn pair<T: Primitive>(&mut self, key: Name<'_>, value: T) -> &mut Self
pub fn pair<T: Primitive>(&mut self, key: Name<'_>, value: T) -> &mut Self
Write a pair with a primitive value.
This is a shorthand for dict.insert(key).primitive(value)
.
sourcepub fn pairs<'n, T: Primitive>(
&mut self,
pairs: impl IntoIterator<Item = (Name<'n>, T)>,
) -> &mut Self
pub fn pairs<'n, T: Primitive>( &mut self, pairs: impl IntoIterator<Item = (Name<'n>, T)>, ) -> &mut Self
Write a sequence of pairs with primitive values.
Trait Implementations§
source§impl<'a> Deref for Appearance<'a>
impl<'a> Deref for Appearance<'a>
source§impl<'a> DerefMut for Appearance<'a>
impl<'a> DerefMut for Appearance<'a>
source§impl<'a, 'any> Rewrite<'a> for Appearance<'any>
impl<'a, 'any> Rewrite<'a> for Appearance<'any>
source§type Output = Appearance<'a>
type Output = Appearance<'a>
The writer with the rewritten lifetime.
Auto Trait Implementations§
impl<'a> Freeze for Appearance<'a>
impl<'a> RefUnwindSafe for Appearance<'a>
impl<'a> Send for Appearance<'a>
impl<'a> Sync for Appearance<'a>
impl<'a> Unpin for Appearance<'a>
impl<'a> !UnwindSafe for Appearance<'a>
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