pub struct DirectoryWriter { /* private fields */ }Implementations§
Source§impl DirectoryWriter
impl DirectoryWriter
pub fn remove_tag<T: TiffTag>(&mut self, tag: T)
pub fn add_tag<T: TiffTag, V: Into<Value>>(&mut self, tag: T, value: V)
pub fn add_untyped_tag<V: Into<Value>>(&mut self, tag: u16, value: V)
pub fn contains<T: TiffTag>(&self, tag: T) -> bool
pub fn copy<'a>(&mut self, iter: impl Iterator<Item = (&'a u16, &'a Value)>)
pub fn copy_with_override<'a>( &mut self, iter: impl Iterator<Item = (&'a u16, &'a Value)>, )
pub fn add_tag_undefined<T: TiffTag>(&mut self, tag: T, data: Vec<u8>)
pub fn add_value<T: TiffTag>(&mut self, tag: T, value: Value)
pub fn entry_count(&self) -> u16
pub fn new() -> Self
pub fn is_empty(&self) -> bool
pub fn build<W>(self, tiff: &mut TiffWriter<W>) -> Result<u32>
Trait Implementations§
Source§impl Default for DirectoryWriter
impl Default for DirectoryWriter
Source§fn default() -> DirectoryWriter
fn default() -> DirectoryWriter
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for DirectoryWriter
impl RefUnwindSafe for DirectoryWriter
impl Send for DirectoryWriter
impl Sync for DirectoryWriter
impl Unpin for DirectoryWriter
impl UnsafeUnpin for DirectoryWriter
impl UnwindSafe for DirectoryWriter
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
Source§impl<T, Ctx> BundleDefault<Ctx> for Twhere
T: Default,
impl<T, Ctx> BundleDefault<Ctx> for Twhere
T: Default,
Source§fn default_with_context(_: Ctx) -> T
fn default_with_context(_: Ctx) -> T
Creates a default value with the given context.
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