2014-08-27 02:03:39 +00:00
|
|
|
#![crate_name = "rustdoc_test"]
|
|
|
|
|
2015-05-21 12:17:37 +00:00
|
|
|
use std::ops::Deref;
|
|
|
|
|
2022-08-10 20:13:18 +00:00
|
|
|
// @hasraw search-index.js Foo
|
2014-08-27 02:03:39 +00:00
|
|
|
pub use private::Foo;
|
|
|
|
|
|
|
|
mod private {
|
|
|
|
pub struct Foo;
|
|
|
|
impl Foo {
|
2022-08-10 20:13:18 +00:00
|
|
|
pub fn test_method() {} // @hasraw - test_method
|
2022-08-12 04:44:07 +00:00
|
|
|
fn priv_method() {} // @!hasraw - priv_method
|
2014-08-27 02:03:39 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
pub trait PrivateTrait {
|
2022-08-12 04:44:07 +00:00
|
|
|
fn trait_method(&self) {} // @!hasraw - priv_method
|
2014-08-27 02:03:39 +00:00
|
|
|
}
|
|
|
|
}
|
2015-05-21 12:17:37 +00:00
|
|
|
|
|
|
|
pub struct Bar;
|
|
|
|
|
|
|
|
impl Deref for Bar {
|
2022-08-12 04:44:07 +00:00
|
|
|
// @!hasraw search-index.js Target
|
2015-05-21 12:17:37 +00:00
|
|
|
type Target = Bar;
|
|
|
|
fn deref(&self) -> &Bar { self }
|
|
|
|
}
|