pub struct WasmMarkdownDoc {
inner: Rc<RefCell<Doc>>,
}Fields§
§inner: Rc<RefCell<Doc>>Implementations§
Source§impl WasmMarkdownDoc
impl WasmMarkdownDoc
pub fn new() -> Self
pub fn line(&self, text: &str)
pub fn blank(&self)
pub fn heading(&self, level: u8, text: &str)
pub fn h1(&self, text: &str)
pub fn h2(&self, text: &str)
pub fn h3(&self, text: &str)
pub fn bullet(&self, text: &str)
pub fn kv_bullet(&self, key: &str, value: &str)
pub fn def(&self, term: &str, desc: &str)
pub fn def_detail(&self, term: &str, detail: &str, desc: &str)
pub fn code_block(&self, language: &str, content: &str)
pub fn raw(&self, text: &str)
pub fn build(&self) -> String
Trait Implementations§
Source§impl Clone for WasmMarkdownDoc
impl Clone for WasmMarkdownDoc
Source§fn clone(&self) -> WasmMarkdownDoc
fn clone(&self) -> WasmMarkdownDoc
Returns a duplicate 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 moreSource§impl Debug for WasmMarkdownDoc
impl Debug for WasmMarkdownDoc
Source§impl Default for WasmMarkdownDoc
impl Default for WasmMarkdownDoc
Source§impl From<WasmMarkdownDoc> for JsValue
impl From<WasmMarkdownDoc> for JsValue
Source§fn from(value: WasmMarkdownDoc) -> Self
fn from(value: WasmMarkdownDoc) -> Self
Converts to this type from the input type.
Source§impl FromWasmAbi for WasmMarkdownDoc
impl FromWasmAbi for WasmMarkdownDoc
Source§impl IntoWasmAbi for WasmMarkdownDoc
impl IntoWasmAbi for WasmMarkdownDoc
Source§impl LongRefFromWasmAbi for WasmMarkdownDoc
impl LongRefFromWasmAbi for WasmMarkdownDoc
Source§impl OptionFromWasmAbi for WasmMarkdownDoc
impl OptionFromWasmAbi for WasmMarkdownDoc
Source§impl OptionIntoWasmAbi for WasmMarkdownDoc
impl OptionIntoWasmAbi for WasmMarkdownDoc
Source§impl RefFromWasmAbi for WasmMarkdownDoc
impl RefFromWasmAbi for WasmMarkdownDoc
Source§type Anchor = RcRef<WasmMarkdownDoc>
type Anchor = RcRef<WasmMarkdownDoc>
The type that holds the reference to
Self for the duration of the
invocation of the function that has an &Self parameter. This is
required to ensure that the lifetimes don’t persist beyond one function
call, and so that they remain anonymous.Source§impl RefMutFromWasmAbi for WasmMarkdownDoc
impl RefMutFromWasmAbi for WasmMarkdownDoc
Source§impl TryFromJsValue for WasmMarkdownDoc
impl TryFromJsValue for WasmMarkdownDoc
Source§impl VectorFromWasmAbi for WasmMarkdownDoc
impl VectorFromWasmAbi for WasmMarkdownDoc
type Abi = <Box<[JsValue]> as FromWasmAbi>::Abi
unsafe fn vector_from_abi(js: Self::Abi) -> Box<[WasmMarkdownDoc]>
Source§impl VectorIntoWasmAbi for WasmMarkdownDoc
impl VectorIntoWasmAbi for WasmMarkdownDoc
type Abi = <Box<[JsValue]> as IntoWasmAbi>::Abi
fn vector_into_abi(vector: Box<[WasmMarkdownDoc]>) -> Self::Abi
Source§impl WasmDescribe for WasmMarkdownDoc
impl WasmDescribe for WasmMarkdownDoc
impl SupportsConstructor for WasmMarkdownDoc
impl SupportsInstanceProperty for WasmMarkdownDoc
impl SupportsStaticProperty for WasmMarkdownDoc
Auto Trait Implementations§
impl Freeze for WasmMarkdownDoc
impl !RefUnwindSafe for WasmMarkdownDoc
impl !Send for WasmMarkdownDoc
impl !Sync for WasmMarkdownDoc
impl Unpin for WasmMarkdownDoc
impl UnsafeUnpin for WasmMarkdownDoc
impl !UnwindSafe for WasmMarkdownDoc
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
Source§type Abi = <T as IntoWasmAbi>::Abi
type Abi = <T as IntoWasmAbi>::Abi
Same as
IntoWasmAbi::AbiSource§fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
Same as
IntoWasmAbi::into_abi, except that it may throw and never
return in the case of Err.