pub struct Realm { /* private fields */ }
Expand description
A reference to a Realm database.
Implementations§
Source§impl Realm
impl Realm
Sourcepub fn open(path: impl AsRef<Path> + Debug) -> RealmResult<Self>
pub fn open(path: impl AsRef<Path> + Debug) -> RealmResult<Self>
Open a Realm database.
Returns an error if:
- The header is invalid.
- The file is encrypted.
- The file format version is not supported.
Sourcepub fn into_group(self) -> RealmResult<Group>
pub fn into_group(self) -> RealmResult<Group>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Realm
impl RefUnwindSafe for Realm
impl Send for Realm
impl Sync for Realm
impl Unpin for Realm
impl UnwindSafe for Realm
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