#[doc = crate::_tags!(internal)]
#[doc = crate::_doc_meta!{location("yard")}]
#[cfg_attr(cargo_primary_package, doc(hidden))]
#[cfg_attr(not(feature = "__docs_internal"), doc(hidden))]
#[cfg_attr(nightly_doc, doc(cfg(feature = "__docs_internal")))]
#[macro_export]
macro_rules! _doc· {
(newline) => { "<br/><br style='display:block;content:\"\";margin-top:10px;' />" }; (lf) => { "\n\n" };
(br) => { "<br/><br style='display:block;content:\"\";margin-top:10px;' />" };
(br+lf) => { "<br/><br style='display:block;content:\"\";margin-top:10px;' />\n\n" };
(br+hr) => { "<br/><hr/>" };
(hr) => { "<hr/>" };
(flat: $mod:literal) => {
concat!["<a title='See the flat view of the `", $mod, "` module' href='",
$crate::doclink![custom_current_crate concat!["zall_/_", $mod], @mod], "'>◉</a>"] };
(root: $mod:literal) => {
concat!["<a title='See the hierarchical view of the `", $mod, "` module' href='",
$crate::doclink![custom_current_crate $mod, @mod], "'>▽</a>"] };
( modules: $path:path; $self:ident) => {
concat!(
$crate::_doc!(@meta_start_lf),
"[", stringify!($self), "][mod@", stringify!($path), "::", stringify!($self), "]",
$crate::_doc!(@meta_end),
)
};
( modules: $path:path; $self:ident: _ $(,)?) => {
concat!(
$crate::_doc!(@meta_start_br),
"[", stringify!($self), "][mod@", stringify!($path), "::", stringify!($self), "]",
$crate::_doc!(@meta_end),
)
};
( modules: $path:path; $self:ident: $($mod:ident),+ $(,)?) => {
concat!(
$crate::_doc!(@meta_start_br),
"[", stringify!($self), "][mod@", stringify!($path), "::", stringify!($self), "]::{",
$crate::_doc!(@modules: $path; $self: $($mod),+), "}",
$crate::_doc!(@meta_end),
)
};
(@modules: $path:path; $self:ident: $first:ident $(, $rest:ident)*) => {
concat!(
"[", stringify!($first), "](mod@",
stringify!($path), "::", stringify!($self), "::",
stringify!($first), ")",
$(
", [", stringify!($rest), "](mod@", stringify!($path), "::",
stringify!($self), "::", stringify!($rest), ")"
),*
)
};
(extends: $($mod:ident),+ $(,)?) => {
concat!(
$crate::_doc!(@meta_start_lf), "Extends: ",
"std::{", $crate::_doc!(@extends: $($mod),+), "}",
$crate::_doc!(@meta_end_hr),
)
};
(@extends: $first:ident $(, $rest:ident)*) => {
concat!(
"[", stringify!($first), "](https://doc.rust-lang.org/std/", stringify!($first), ")",
$(
", [", stringify!($rest), "](https://doc.rust-lang.org/std/", stringify!($rest), ")"
),*
)
};
(@meta_start_br) => {
"<br/><i style='margin-left:0em;'></i><span style='font-size:90%;word-spacing:0px'>"
};
(@meta_start_lf) => {
"\n\n<i style='margin-left:0em;margin-top:-2em;'></i><span style='font-size:90%;word-spacing:0px'>"
};
(@meta_start_nobr) => {
"<i style='margin-left:0em;margin-top:-2em;'></i><span style='font-size:90%;word-spacing:0px'>"
};
(@meta_end) => { "</span>" };
(@meta_end_hr) => { "</span><hr/>" };
}
#[doc(inline)]
pub use _doc· as _doc;