Struct Module

Source
pub struct Module {
    pub name: String,
    pub stream_name: String,
    pub doc_string: String,
    pub text_offset: usize,
    pub help_context: u32,
    pub module_type: ModuleType,
    pub read_only: bool,
    pub private: bool,
}
Expand description

Specifies data for a module.

Fields§

§name: String

Specifies a VBA identifier as the name of the containing Module.

§stream_name: String

Specifies the stream name in the VBA storage corresponding to the containing Module.

§doc_string: String

Specifies the description for the containing Module.

§text_offset: usize

Specifies the location of the source code within the stream that corresponds to the containing Module.

§help_context: u32

Specifies the Help topic identifier for the containing Module.

§module_type: ModuleType

Specifies whether the containing Module is a procedural module, document module, class module, or designer module.

§read_only: bool

Specifies that the containing Module is read-only.

§private: bool

Specifies that the containing Module is only usable from within the current VBA project.

Trait Implementations§

Source§

impl Debug for Module

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl Freeze for Module

§

impl RefUnwindSafe for Module

§

impl Send for Module

§

impl Sync for Module

§

impl Unpin for Module

§

impl UnwindSafe for Module

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.