Struct edhex_core::Preferences
source · [−]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
sourceimpl 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
sourceimpl Clone for Preferences
impl Clone for Preferences
sourcefn clone(&self) -> Preferences
fn clone(&self) -> Preferences
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for Preferences
impl Debug for Preferences
sourceimpl<'de> Deserialize<'de> for Preferences
impl<'de> Deserialize<'de> for Preferences
sourcefn 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
sourceimpl DiskWritable for &Preferences
impl DiskWritable for &Preferences
sourceimpl Serialize for Preferences
impl Serialize for Preferences
Auto Trait Implementations
impl RefUnwindSafe for Preferences
impl Send for Preferences
impl Sync for Preferences
impl Unpin for Preferences
impl UnwindSafe for Preferences
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more