use super::*;
#[derive(Clone, Debug)]
pub struct Extends {
pub id: u32,
pub generic: RcList<Typing>,
pub version: String,
pub class: Rc<Class>,
pub class_typing: RcList<Typing>,
pub class_traits: RcList<Trait>,
pub class_bounds: RcList<TraitBoundItem>,
}
impl SignatureContainer for Extends {
fn get_signature(&self) -> Html {
let head = Html::from("extends");
let generic = self.generic.render();
let class = self.class.get_name();
let class_typing = self.class_typing.render();
let traits = self.class_traits.render();
let bound = self.class_bounds.render();
html! {<code class="signature">{head}{generic}{" "}{class}{class_typing}{traits}{bound}</code>}
}
fn get_id(&self) -> String {
format!("extends.{}", self.id)
}
fn get_class(&self) -> String {
format!("extends")
}
fn get_children(&self) -> Option<Html> {
Some(html! {
<p>
{"Returns the match associated with the capture group at index"} <code>{"P"}</code>{"."}
{"If i does not correspond to a capture group, or if the capture group
did not participate in the match, then"}<code>{"None"}</code>{"is returned."}
<br/>
{"中文测试中文测试中文怎么样"}
<br/>
{"ab ab ab ab ab ab ab ab ab"}
</p>
})
}
fn get_source(&self) -> String {
String::from("GG")
}
}