pub struct MonikerBuilder { /* private fields */ }Expand description
Builder for the internal encoded Moniker value.
Use try_build for untrusted bytes. build is the trusted path for code
that has already enforced the URI-safe moniker invariants.
Implementations§
Source§impl MonikerBuilder
impl MonikerBuilder
pub fn new() -> Self
pub fn from_view(view: MonikerView<'_>) -> Self
pub fn truncate(&mut self, len: usize)
pub fn project(&mut self, project: &[u8]) -> &mut Self
pub fn segment(&mut self, kind: &[u8], name: &[u8]) -> &mut Self
pub fn build(&self) -> Moniker
pub fn try_build(&self) -> Result<Moniker, EncodingError>
Trait Implementations§
Source§impl Debug for MonikerBuilder
impl Debug for MonikerBuilder
Source§impl Default for MonikerBuilder
impl Default for MonikerBuilder
Source§fn default() -> MonikerBuilder
fn default() -> MonikerBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for MonikerBuilder
impl RefUnwindSafe for MonikerBuilder
impl Send for MonikerBuilder
impl Sync for MonikerBuilder
impl Unpin for MonikerBuilder
impl UnsafeUnpin for MonikerBuilder
impl UnwindSafe for MonikerBuilder
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