pub struct Small<'a> {
pub small: &'a SmallString,
/* private fields */
}
Expand description
Small
is a selection of SmallString
. Its function is to encapsulate path selections. See the
path()
function implemented by the FromSmall
trait.
Fields§
§small: &'a SmallString
Implementations§
Source§impl<'a> Small<'a>
impl<'a> Small<'a>
Sourcepub fn unique_value(&self) -> Result<Token, SmallError>
pub fn unique_value(&self) -> Result<Token, SmallError>
Checks that there is only one value in Small
and returns it.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Small<'a>
impl<'a> RefUnwindSafe for Small<'a>
impl<'a> Send for Small<'a>
impl<'a> Sync for Small<'a>
impl<'a> Unpin for Small<'a>
impl<'a> UnwindSafe for Small<'a>
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