Struct IDebugDocumentText
pub struct IDebugDocumentText(/* private fields */);
Implementations§
§impl IDebugDocumentText
impl IDebugDocumentText
pub unsafe fn GetDocumentAttributes(&self) -> Result<u32>
pub unsafe fn GetSize( &self, pcnumlines: *mut u32, pcnumchars: *mut u32, ) -> Result<()>
pub unsafe fn GetPositionOfLine(&self, clinenumber: u32) -> Result<u32>
pub unsafe fn GetLineOfPosition( &self, ccharacterposition: u32, pclinenumber: *mut u32, pccharacteroffsetinline: *mut u32, ) -> Result<()>
pub unsafe fn GetText( &self, ccharacterposition: u32, pchartext: PWSTR, pstatextattr: Option<*mut u16>, pcnumchars: *mut u32, cmaxchars: u32, ) -> Result<()>
pub unsafe fn GetPositionOfContext<P0>(
&self,
psc: P0,
pccharacterposition: *mut u32,
cnumchars: *mut u32,
) -> Result<()>where
P0: Param<IDebugDocumentContext>,
pub unsafe fn GetContextOfPosition( &self, ccharacterposition: u32, cnumchars: u32, ) -> Result<IDebugDocumentContext>
Methods from Deref<Target = IDebugDocumentInfo>§
pub unsafe fn GetName(&self, dnt: DOCUMENTNAMETYPE) -> Result<BSTR>
pub unsafe fn GetDocumentClassId(&self) -> Result<GUID>
Trait Implementations§
§impl CanInto<IDebugDocument> for IDebugDocumentText
impl CanInto<IDebugDocument> for IDebugDocumentText
§impl CanInto<IDebugDocumentInfo> for IDebugDocumentText
impl CanInto<IDebugDocumentInfo> for IDebugDocumentText
§impl CanInto<IDebugDocumentText> for IDebugDocumentTextAuthor
impl CanInto<IDebugDocumentText> for IDebugDocumentTextAuthor
§impl CanInto<IUnknown> for IDebugDocumentText
impl CanInto<IUnknown> for IDebugDocumentText
§impl Clone for IDebugDocumentText
impl Clone for IDebugDocumentText
§fn clone(&self) -> IDebugDocumentText
fn clone(&self) -> IDebugDocumentText
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more§impl Debug for IDebugDocumentText
impl Debug for IDebugDocumentText
§impl Deref for IDebugDocumentText
impl Deref for IDebugDocumentText
§impl From<&IDebugDocumentText> for &IDebugDocument
impl From<&IDebugDocumentText> for &IDebugDocument
§fn from(value: &IDebugDocumentText) -> Self
fn from(value: &IDebugDocumentText) -> Self
Converts to this type from the input type.
§impl From<&IDebugDocumentText> for &IDebugDocumentInfo
impl From<&IDebugDocumentText> for &IDebugDocumentInfo
§fn from(value: &IDebugDocumentText) -> Self
fn from(value: &IDebugDocumentText) -> Self
Converts to this type from the input type.
§impl From<&IDebugDocumentText> for &IUnknown
impl From<&IDebugDocumentText> for &IUnknown
§fn from(value: &IDebugDocumentText) -> Self
fn from(value: &IDebugDocumentText) -> Self
Converts to this type from the input type.
§impl From<&IDebugDocumentTextAuthor> for &IDebugDocumentText
impl From<&IDebugDocumentTextAuthor> for &IDebugDocumentText
§fn from(value: &IDebugDocumentTextAuthor) -> Self
fn from(value: &IDebugDocumentTextAuthor) -> Self
Converts to this type from the input type.
§impl From<IDebugDocumentText> for IDebugDocument
impl From<IDebugDocumentText> for IDebugDocument
§fn from(value: IDebugDocumentText) -> Self
fn from(value: IDebugDocumentText) -> Self
Converts to this type from the input type.
§impl From<IDebugDocumentText> for IDebugDocumentInfo
impl From<IDebugDocumentText> for IDebugDocumentInfo
§fn from(value: IDebugDocumentText) -> Self
fn from(value: IDebugDocumentText) -> Self
Converts to this type from the input type.
§impl From<IDebugDocumentText> for IUnknown
impl From<IDebugDocumentText> for IUnknown
§fn from(value: IDebugDocumentText) -> Self
fn from(value: IDebugDocumentText) -> Self
Converts to this type from the input type.
§impl From<IDebugDocumentTextAuthor> for IDebugDocumentText
impl From<IDebugDocumentTextAuthor> for IDebugDocumentText
§fn from(value: IDebugDocumentTextAuthor) -> Self
fn from(value: IDebugDocumentTextAuthor) -> Self
Converts to this type from the input type.
§impl Interface for IDebugDocumentText
impl Interface for IDebugDocumentText
§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.
§unsafe fn from_raw_borrowed(raw: &*mut c_void) -> Option<&Self>
unsafe fn from_raw_borrowed(raw: &*mut c_void) -> Option<&Self>
§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 more§fn cast_to_any<T>(&self) -> Result<&(dyn Any + 'static), Error>where
T: ComObjectInner,
<T as ComObjectInner>::Outer: Any + 'static + IUnknownImpl<Impl = T>,
fn cast_to_any<T>(&self) -> Result<&(dyn Any + 'static), Error>where
T: ComObjectInner,
<T as ComObjectInner>::Outer: Any + 'static + IUnknownImpl<Impl = T>,
This casts the given COM interface to [
&dyn Any
]. Read more§fn is_object<T>(&self) -> boolwhere
T: ComObjectInner,
<T as ComObjectInner>::Outer: Any + 'static + IUnknownImpl<Impl = T>,
fn is_object<T>(&self) -> boolwhere
T: ComObjectInner,
<T as ComObjectInner>::Outer: Any + 'static + IUnknownImpl<Impl = T>,
§fn cast_object_ref<T>(&self) -> Result<&<T as ComObjectInner>::Outer, Error>where
T: ComObjectInner,
<T as ComObjectInner>::Outer: Any + 'static + IUnknownImpl<Impl = T>,
fn cast_object_ref<T>(&self) -> Result<&<T as ComObjectInner>::Outer, Error>where
T: ComObjectInner,
<T as ComObjectInner>::Outer: Any + 'static + IUnknownImpl<Impl = T>,
This casts the given COM interface to [
&dyn Any
]. It returns a reference to the “outer”
object, e.g. &MyApp_Impl
, not the inner &MyApp
object. Read more§fn cast_object<T>(&self) -> Result<ComObject<T>, Error>where
T: ComObjectInner,
<T as ComObjectInner>::Outer: Any + 'static + IUnknownImpl<Impl = T>,
fn cast_object<T>(&self) -> Result<ComObject<T>, Error>where
T: ComObjectInner,
<T as ComObjectInner>::Outer: Any + 'static + IUnknownImpl<Impl = T>,
This casts the given COM interface to [
&dyn Any
]. It returns a reference to the “outer”
object, e.g. MyApp_Impl
, not the inner MyApp
object. Read more§fn downgrade(&self) -> Result<Weak<Self>, Error>
fn downgrade(&self) -> Result<Weak<Self>, Error>
Attempts to create a [
Weak
] reference to this object.§impl PartialEq for IDebugDocumentText
impl PartialEq for IDebugDocumentText
impl Eq for IDebugDocumentText
impl StructuralPartialEq for IDebugDocumentText
Auto Trait Implementations§
impl Freeze for IDebugDocumentText
impl RefUnwindSafe for IDebugDocumentText
impl !Send for IDebugDocumentText
impl !Sync for IDebugDocumentText
impl Unpin for IDebugDocumentText
impl UnwindSafe for IDebugDocumentText
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