pub struct FileMetadata { /* private fields */ }

Implementations§

source§

impl FileMetadata

source

pub fn new() -> Ref<Self>

source

pub fn with_filename<S: BnStrCompatible>(name: S) -> Ref<Self>

source

pub fn close(&self)

source

pub fn session_id(&self) -> usize

source

pub fn filename(&self) -> BnString

source

pub fn set_filename<S: BnStrCompatible>(&self, name: S)

source

pub fn modified(&self) -> bool

source

pub fn mark_modified(&self)

source

pub fn mark_saved(&self)

source

pub fn is_analysis_changed(&self) -> bool

source

pub fn is_database_backed<S: BnStrCompatible>(&self, view_type: S) -> bool

source

pub fn run_undoable_transaction<F: FnOnce() -> Result<T, E>, T, E>( &self, func: F ) -> Result<T, E>

source

pub fn begin_undo_actions(&self, anonymous_allowed: bool) -> BnString

source

pub fn commit_undo_actions<S: BnStrCompatible>(&self, id: S)

source

pub fn revert_undo_actions<S: BnStrCompatible>(&self, id: S)

source

pub fn undo(&self)

source

pub fn redo(&self)

source

pub fn current_view(&self) -> BnString

source

pub fn current_offset(&self) -> u64

source

pub fn navigate_to<S: BnStrCompatible>( &self, view: S, offset: u64 ) -> Result<(), ()>

source

pub fn get_view_of_type<S: BnStrCompatible>( &self, view: S ) -> Result<Ref<BinaryView>, ()>

source

pub fn get_project_file(&self) -> Option<ProjectFile>

source

pub fn create_database<S: BnStrCompatible>( &self, filename: S, progress_func: Option<fn(_: usize, _: usize) -> bool> ) -> bool

source

pub fn save_auto_snapshot(&self) -> bool

source

pub fn open_database_for_configuration<S: BnStrCompatible>( &self, filename: S ) -> Result<Ref<BinaryView>, ()>

source

pub fn open_database<S: BnStrCompatible>( &self, filename: S, progress_func: Option<fn(_: usize, _: usize) -> bool> ) -> Result<Ref<BinaryView>, ()>

source

pub fn database(&self) -> Option<Database>

Get the current database

Trait Implementations§

source§

impl Hash for FileMetadata

source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
source§

impl PartialEq for FileMetadata

source§

fn eq(&self, other: &FileMetadata) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl ToOwned for FileMetadata

§

type Owned = Ref<FileMetadata>

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> Self::Owned

Creates owned data from borrowed data, usually by cloning. Read more
1.63.0 · source§

fn clone_into(&self, target: &mut Self::Owned)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl Eq for FileMetadata

source§

impl Send for FileMetadata

source§

impl StructuralPartialEq for FileMetadata

source§

impl Sync for FileMetadata

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.