Struct windows_metadata::reader::File
source · [−]pub struct File { /* private fields */ }
Implementations
sourceimpl File
impl File
pub fn new(path: &str) -> Result<Self>
pub fn name(&self) -> &str
pub fn usize(&self, row: usize, table: usize, column: usize) -> usize
sourcepub fn str(&self, row: usize, table: usize, column: usize) -> &str
pub fn str(&self, row: usize, table: usize, column: usize) -> &str
Returns the string from the #Strings
stream as referenced by
the (table, row, column) triple.
Panics
- When any element of the (table, row, column) triple is invalid.
- When the offset in the string table is out of bounds.
- When no null terminator can be found in the string table.
- When the null-terminated string is not valid utf-8.
pub fn blob(&self, row: usize, table: usize, column: usize) -> &[u8]ⓘNotable traits for &[u8]impl Read for &[u8]impl Write for &mut [u8]
pub fn equal_range(
&self,
table: usize,
column: usize,
value: usize
) -> (usize, usize)
pub fn upper_bound_of(
&self,
table: usize,
first: usize,
last: usize,
column: usize,
value: usize
) -> usize
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for File
impl Send for File
impl Sync for File
impl Unpin for File
impl UnwindSafe for File
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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