#[non_exhaustive]pub enum CommentRule {
Reject,
AllowAscii,
AllowUtf8,
AllowAll,
}Expand description
Which ZIP comment bytes the reader accepts. Empty comments are always accepted.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Reject
Reject nonempty comments.
AllowAscii
Accept only ASCII bytes.
AllowUtf8
Accept UTF-8. Non-ASCII member comments must set the UTF-8 flag (bit 11).
AllowAll
Accept arbitrary bytes. Member comments with bit 11 set must still be UTF-8.
Trait Implementations§
Source§impl Clone for CommentRule
impl Clone for CommentRule
Source§fn clone(&self) -> CommentRule
fn clone(&self) -> CommentRule
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for CommentRule
Source§impl Debug for CommentRule
impl Debug for CommentRule
impl Eq for CommentRule
Source§impl PartialEq for CommentRule
impl PartialEq for CommentRule
impl StructuralPartialEq for CommentRule
Auto Trait Implementations§
impl Forget for CommentRule
impl Freeze for CommentRule
impl Move for CommentRule
impl RefUnwindSafe for CommentRule
impl Send for CommentRule
impl Sync for CommentRule
impl Unpin for CommentRule
impl UnsafeUnpin for CommentRule
impl UnwindSafe for CommentRule
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