pub struct SetScopeTextBuilder { /* private fields */ }Expand description
Builder for SetScopeText.
Implementations§
Source§impl SetScopeTextBuilder
impl SetScopeTextBuilder
pub fn style_sheet_id<VALUE: Into<StyleSheetId>>( &mut self, value: VALUE, ) -> &mut Self
pub fn range<VALUE: Into<SourceRange>>(&mut self, value: VALUE) -> &mut Self
pub fn text<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
Sourcepub fn build(&self) -> Result<SetScopeText, SetScopeTextBuilderError>
pub fn build(&self) -> Result<SetScopeText, SetScopeTextBuilderError>
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 moreAuto 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