mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
Fix rustdoc errors in components/script/dom
(#31617)
* Fix rustdoc errors in components/script/dom * Revert if to iff in audiobuffer.rs
This commit is contained in:
parent
45344dca2b
commit
d1fd8d55ab
4 changed files with 4 additions and 4 deletions
|
@ -44,7 +44,7 @@ pub struct AudioBuffer {
|
|||
#[ignore_malloc_size_of = "mozjs"]
|
||||
js_channels: DomRefCell<Vec<HeapBufferSource<Float32>>>,
|
||||
/// Aggregates the data from js_channels.
|
||||
/// This is Some<T> iff the buffers in js_channels are detached.
|
||||
/// This is `Some<T>` iff the buffers in js_channels are detached.
|
||||
#[ignore_malloc_size_of = "servo_media"]
|
||||
#[no_trace]
|
||||
shared_channels: DomRefCell<Option<ServoMediaAudioBuffer>>,
|
||||
|
|
|
@ -68,7 +68,7 @@ impl TrustedReference {
|
|||
/// A safe wrapper around a DOM Promise object that can be shared among threads for use
|
||||
/// in asynchronous operations. The underlying DOM object is guaranteed to live at least
|
||||
/// as long as the last outstanding `TrustedPromise` instance. These values cannot be cloned,
|
||||
/// only created from existing Rc<Promise> values.
|
||||
/// only created from existing `Rc<Promise>` values.
|
||||
pub struct TrustedPromise {
|
||||
dom_object: *const Promise,
|
||||
owner_thread: *const libc::c_void,
|
||||
|
|
|
@ -135,7 +135,7 @@ pub trait DomObjectWrap: Sized + DomObject {
|
|||
/// A trait to provide a function pointer to wrap function for
|
||||
/// DOM iterator interfaces.
|
||||
pub trait DomObjectIteratorWrap: DomObjectWrap + JSTraceable + Iterable {
|
||||
/// Function pointer to the wrap function for IterableIterator<T>
|
||||
/// Function pointer to the wrap function for `IterableIterator<T>`
|
||||
const ITER_WRAP: unsafe fn(
|
||||
JSContext,
|
||||
&GlobalScope,
|
||||
|
|
|
@ -53,7 +53,7 @@ pub struct Promise {
|
|||
permanent_js_root: Heap<JSVal>,
|
||||
}
|
||||
|
||||
/// Private helper to enable adding new methods to Rc<Promise>.
|
||||
/// Private helper to enable adding new methods to `Rc<Promise>`.
|
||||
trait PromiseHelper {
|
||||
fn initialize(&self, cx: SafeJSContext);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue