Struct servo_url::origin::MutableOrigin
source · pub struct MutableOrigin(Rc<(ImmutableOrigin, RefCell<Option<Host>>)>);
Expand description
A representation of an origin.
Tuple Fields
0: Rc<(ImmutableOrigin, RefCell<Option<Host>>)>
Implementations
sourceimpl MutableOrigin
impl MutableOrigin
pub fn new(origin: ImmutableOrigin) -> MutableOrigin
pub fn immutable(&self) -> &ImmutableOrigin
pub fn is_tuple(&self) -> bool
pub fn scheme(&self) -> Option<&str>
pub fn host(&self) -> Option<&Host>
pub fn port(&self) -> Option<u16>
pub fn same_origin(&self, other: &MutableOrigin) -> bool
pub fn same_origin_domain(&self, other: &MutableOrigin) -> bool
pub fn domain(&self) -> Option<Host>
pub fn set_domain(&self, domain: Host)
pub fn has_domain(&self) -> bool
pub fn effective_domain(&self) -> Option<Host>
Trait Implementations
sourceimpl Clone for MutableOrigin
impl Clone for MutableOrigin
sourcefn clone(&self) -> MutableOrigin
fn clone(&self) -> MutableOrigin
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for MutableOrigin
impl Debug for MutableOrigin
sourceimpl MallocSizeOf for MutableOrigin
impl MallocSizeOf for MutableOrigin
sourcefn size_of(&self, _: &mut MallocSizeOfOps) -> usize
fn size_of(&self, _: &mut MallocSizeOfOps) -> usize
Measure the heap usage of all descendant heap-allocated structures, but
not the space taken up by the value itself. Read more
Auto Trait Implementations
impl !RefUnwindSafe for MutableOrigin
impl !Send for MutableOrigin
impl !Sync for MutableOrigin
impl Unpin for MutableOrigin
impl !UnwindSafe for MutableOrigin
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more