pub struct SetScopeTextBuilder { /* private fields */ }Implementations§
Source§impl SetScopeTextBuilder
impl SetScopeTextBuilder
pub fn style_sheet_id(self, style_sheet_id: impl Into<StyleSheetId>) -> Self
pub fn range(self, range: impl Into<SourceRange>) -> Self
pub fn text(self, text: impl Into<String>) -> Self
pub fn build(self) -> Result<SetScopeText, String>
Trait Implementations§
Source§impl Clone for SetScopeTextBuilder
impl Clone for SetScopeTextBuilder
Source§fn clone(&self) -> SetScopeTextBuilder
fn clone(&self) -> SetScopeTextBuilder
Returns a duplicate 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 Default for SetScopeTextBuilder
impl Default for SetScopeTextBuilder
Source§fn default() -> SetScopeTextBuilder
fn default() -> SetScopeTextBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for SetScopeTextBuilder
impl RefUnwindSafe for SetScopeTextBuilder
impl Send for SetScopeTextBuilder
impl Sync for SetScopeTextBuilder
impl Unpin for SetScopeTextBuilder
impl UnsafeUnpin for SetScopeTextBuilder
impl UnwindSafe for SetScopeTextBuilder
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