pub fn registration_for(&self, scope: &Url) -> ServiceWorkerRegistrationFor {
        ServiceWorkerRegistrationFor {
            init: Some(RegistrationForInit {
                container: self.inner.clone(),
                scope: scope.to_string(),
            }),
            inner: None,
        }
    }
// Note: while get_registration make the scope url argument optional, we don't here. A scope of
// `None` should be equivalent to `ready`.
while get_registration make the scope url argument optional, we don't here. A scope of
`None` should be equivalent to `ready`.
while get_registration make the scope url argument optional we don ' t here . A scope of ` None ` should be equivalent to ` ready ` .
pub fn registration_for(&self, scope: &Url) -> ServiceWorkerRegistrationFor {
        ServiceWorkerRegistrationFor {
            init: Some(RegistrationForInit {
                container: self.inner.clone(),
                scope: scope.to_string(),
            }),
            inner: None,
        }
    }
pub fn registration_for ( & self , scope : & Url ) -> ServiceWorkerRegistrationFor { ServiceWorkerRegistrationFor { init : Some ( RegistrationForInit { container : self . inner . clone ( ) , scope : scope . to_string ( ) , } ) , inner : None , } }
Note: while get_registration make the scope url argument optional, we don't here.
Note : while get_registration make the scope url argument optional we don ' t here .
&self
scope
&Url
&self
scope
&Url