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§
source§impl 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§
source§impl Clone for MutableOrigin
impl Clone for MutableOrigin
source§fn clone(&self) -> MutableOrigin
fn clone(&self) -> MutableOrigin
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for MutableOrigin
impl Debug for MutableOrigin
source§impl<'de> Deserialize<'de> for MutableOrigin
impl<'de> Deserialize<'de> for MutableOrigin
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl MallocSizeOf for MutableOrigin
impl MallocSizeOf for MutableOrigin
source§fn 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.
Auto Trait Implementations§
impl Freeze for MutableOrigin
impl !RefUnwindSafe for MutableOrigin
impl !Send for MutableOrigin
impl !Sync for MutableOrigin
impl Unpin for MutableOrigin
impl !UnwindSafe for MutableOrigin
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more