Each section of a name is called label
ex: google.com
consists of two labels google
and com
Create a new Name without checking for size limits
Verify if name ends with .local.
Returns true if self is a subdomain of other
Returns the subdomain part of self, based on domain
.
If self is not a subdomain of domain
, returns None
Example:
let name = Name::new_unchecked("sub.domain.local");
let domain = Name::new_unchecked("domain.local");
assert!(domain.without(&name).is_none());
let sub = name.without(&domain).unwrap();
assert_eq!(sub.to_string(), "sub")
Transforms the inner data into its owned type
Get the labels that compose this name
clone_to_uninit
)