#[repr(u8)]pub enum JolietLevel {
Level1 = 1,
Level2 = 2,
Level3 = 3,
}Expand description
Identifies a JolietLevel value.
Variants§
Level1 = 1
Level 1 - UCS-2 Level 1 (escape sequence %/@)
Level2 = 2
Level 2 - UCS-2 Level 2 (escape sequence %/C)
Level3 = 3
Level 3 - UCS-2 Level 3 (escape sequence %/E) - most common
Implementations§
Source§impl JolietLevel
impl JolietLevel
Sourcepub fn all() -> &'static [JolietLevel]
pub fn all() -> &'static [JolietLevel]
Performs the all operation.
Sourcepub fn escape_sequence(self) -> [u8; 32]
pub fn escape_sequence(self) -> [u8; 32]
Get the escape sequence for this Joliet level
Sourcepub fn from_escape_sequence(escape: &[u8; 32]) -> Option<JolietLevel>
pub fn from_escape_sequence(escape: &[u8; 32]) -> Option<JolietLevel>
Try to detect the Joliet level from escape sequences
Trait Implementations§
Source§impl Clone for JolietLevel
impl Clone for JolietLevel
Source§fn clone(&self) -> JolietLevel
fn clone(&self) -> JolietLevel
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 JolietLevel
Source§impl Debug for JolietLevel
impl Debug for JolietLevel
impl Eq for JolietLevel
Source§impl Hash for JolietLevel
impl Hash for JolietLevel
Source§impl Ord for JolietLevel
impl Ord for JolietLevel
Source§fn cmp(&self, other: &JolietLevel) -> Ordering
fn cmp(&self, other: &JolietLevel) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for JolietLevel
impl PartialEq for JolietLevel
Source§impl PartialOrd for JolietLevel
impl PartialOrd for JolietLevel
impl StructuralPartialEq for JolietLevel
Auto Trait Implementations§
impl Freeze for JolietLevel
impl RefUnwindSafe for JolietLevel
impl Send for JolietLevel
impl Sync for JolietLevel
impl Unpin for JolietLevel
impl UnsafeUnpin for JolietLevel
impl UnwindSafe for JolietLevel
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