pub struct Document(/* private fields */);
Implementations§
§impl Document
impl Document
pub unsafe fn Save(&self) -> Result<()>
pub unsafe fn SaveAs<P0>(&self, filename: P0) -> Result<()>where
P0: IntoParam<BSTR>,
pub unsafe fn Close<P0>(&self, savechanges: P0) -> Result<()>where
P0: IntoParam<BOOL>,
pub unsafe fn Views(&self) -> Result<Views>
pub unsafe fn SnapIns(&self) -> Result<SnapIns>
pub unsafe fn ActiveView(&self) -> Result<View>
pub unsafe fn Name(&self) -> Result<BSTR>
pub unsafe fn SetName<P0>(&self, name: P0) -> Result<()>where
P0: IntoParam<BSTR>,
pub unsafe fn Location(&self) -> Result<BSTR>
pub unsafe fn IsSaved(&self) -> Result<BOOL>
pub unsafe fn Mode(&self) -> Result<_DocumentMode>
pub unsafe fn SetMode(&self, mode: _DocumentMode) -> Result<()>
pub unsafe fn RootNode(&self) -> Result<Node>
pub unsafe fn ScopeNamespace(&self) -> Result<ScopeNamespace>
pub unsafe fn CreateProperties(&self) -> Result<Properties>
pub unsafe fn Application(&self) -> Result<_Application>
Trait Implementations§
§impl Interface for Document
impl Interface for Document
§fn as_raw(&self) -> *mut c_void
fn as_raw(&self) -> *mut c_void
Returns the raw COM interface pointer. The resulting pointer continues to be owned by the
Interface
implementation.§fn into_raw(self) -> *mut c_void
fn into_raw(self) -> *mut c_void
Returns the raw COM interface pointer and releases ownership. It the caller’s responsibility to release the COM interface pointer.
§fn cast<T>(&self) -> Result<T, Error>where
T: Interface,
fn cast<T>(&self) -> Result<T, Error>where
T: Interface,
Attempts to cast the current interface to another interface using
QueryInterface
. Read moreimpl Eq for Document
impl StructuralPartialEq for Document
Auto Trait Implementations§
impl RefUnwindSafe for Document
impl !Send for Document
impl !Sync for Document
impl Unpin for Document
impl UnwindSafe for Document
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