pub struct ASCII(/* private fields */);
Expand description
8-bit byte that contains a 7-bit ASCII code.
According the TIFF specification, the last byte
of a field of ASCII
s must be NUL
(binary zero, ‘\0’).
Implementations§
Source§impl ASCII
impl ASCII
Sourcepub fn from_str(s: &str) -> TiffTypeValues<ASCII>
pub fn from_str(s: &str) -> TiffTypeValues<ASCII>
Constructs a TiffTypeValues
of ASCII
s from a &str
.
If the string doesn’t already end with a NUL
value, it will
be added automatically.
Sourcepub fn values<T: AsRef<[u8]>>(values: T) -> TiffTypeValues<ASCII>
pub fn values<T: AsRef<[u8]>>(values: T) -> TiffTypeValues<ASCII>
Constructs a TiffTypeValues
of ASCII
s from a vector of
bytes.
If last value isn’t already a NUL
value, a NUL
value will
be added automatically after the last value.
Trait Implementations§
impl StructuralPartialEq for ASCII
Auto Trait Implementations§
impl Freeze for ASCII
impl RefUnwindSafe for ASCII
impl Send for ASCII
impl Sync for ASCII
impl Unpin for ASCII
impl UnwindSafe for ASCII
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