[−][src]Struct imaged::DB
DB wraps the libimaged's Imaged
type
Implementations
impl DB
[src]
pub fn open<P: AsRef<Path>>(path: P) -> Result<Self, Error>
[src]
Open an imaged instance at the given path
pub fn destroy(self) -> Result<(), Error>
[src]
Destroy all imgd files at the DB's root
pub fn iter(&self) -> Result<Iter<'_>, Error>
[src]
Returns a new image iterator
pub fn iter_keys(&self) -> Result<KeyIter<'_>, Error>
[src]
Returns a new key iterator
pub fn get<S: AsRef<str>>(
&self,
key: S,
editable: bool
) -> Result<Handle<'_>, Error>
[src]
&self,
key: S,
editable: bool
) -> Result<Handle<'_>, Error>
Get a key, editable
determines whether or not the pixels can be edited
pub fn is_locked(&self, key: &str) -> bool
[src]
Check if a key is in use
pub fn file_is_valid(&self, key: &str) -> bool
[src]
Check if a key is a valid imgd file
pub fn set<'a, S: AsRef<str>>(
&'a self,
key: S,
image: &Image<'_>
) -> Result<Handle<'a>, Error>
[src]
&'a self,
key: S,
image: &Image<'_>
) -> Result<Handle<'a>, Error>
Set a key
pub fn set_raw<S: AsRef<str>>(
&self,
key: S,
meta: Meta,
data: Option<*const c_void>
) -> Result<Handle<'_>, Error>
[src]
&self,
key: S,
meta: Meta,
data: Option<*const c_void>
) -> Result<Handle<'_>, Error>
Set a key using metadata and a pointer to the image data
pub fn remove<S: AsRef<str>>(&self, key: S) -> Result<(), Error>
[src]
Remove a key
Trait Implementations
Auto Trait Implementations
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,