pub struct Preferences {
pub radix: u32,
pub show_byte_numbers: bool,
pub show_chars: bool,
pub show_prompt: bool,
pub color: bool,
pub width: NonZeroUsize,
pub underline_main_line: bool,
pub n_padding: String,
pub before_context: usize,
pub after_context: usize,
}
Fields§
§radix: u32
§show_byte_numbers: bool
§show_chars: bool
§show_prompt: bool
§color: bool
§width: NonZeroUsize
§underline_main_line: bool
§n_padding: String
§before_context: usize
§after_context: usize
Implementations§
Source§impl Preferences
impl Preferences
pub fn read_from_filename(filename: &str) -> Result<Preferences, String>
pub fn read_from_path(path: &Path) -> Result<Preferences, String>
pub fn default() -> Self
Trait Implementations§
Source§impl Clone for Preferences
impl Clone for Preferences
Source§fn clone(&self) -> Preferences
fn clone(&self) -> Preferences
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for Preferences
impl Debug for Preferences
Source§impl<'de> Deserialize<'de> for Preferences
impl<'de> Deserialize<'de> for Preferences
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl DiskWritable for &Preferences
impl DiskWritable for &Preferences
Auto Trait Implementations§
impl Freeze for Preferences
impl RefUnwindSafe for Preferences
impl Send for Preferences
impl Sync for Preferences
impl Unpin for Preferences
impl UnwindSafe for Preferences
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