pub struct Sources { /* private fields */ }Implementations§
Source§impl Sources
impl Sources
Sourcepub fn new(uri: Url, kind: SourceKind, generated: bool) -> Self
pub fn new(uri: Url, kind: SourceKind, generated: bool) -> Self
Either a text document or a directory. A directory entry must end with a forward slash “/” and a directory entry implies that every nested text document within the directory belongs to this source item.
Sourcepub fn kind(&self) -> &SourceKind
pub fn kind(&self) -> &SourceKind
Get a reference to the bsp sources item’s kind.
Sourcepub fn set_kind(&mut self, kind: SourceKind)
pub fn set_kind(&mut self, kind: SourceKind)
Set the bsp sources item’s kind.
Sourcepub fn set_generated(&mut self, generated: bool)
pub fn set_generated(&mut self, generated: bool)
Set the bsp sources item’s generated.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Sources
impl<'de> Deserialize<'de> for Sources
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for Sources
impl RefUnwindSafe for Sources
impl Send for Sources
impl Sync for Sources
impl Unpin for Sources
impl UnwindSafe for Sources
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