pub struct SourcedType {
pub ty: UnifiedType,
pub source: TypeSource,
}Expand description
出自情報付き型
Fields§
§ty: UnifiedType§source: TypeSourceImplementations§
Source§impl SourcedType
impl SourcedType
Sourcepub fn new(ty: UnifiedType, source: TypeSource) -> Self
pub fn new(ty: UnifiedType, source: TypeSource) -> Self
新しい出自情報付き型を作成
Sourcepub fn from_apidoc(raw: &str, entry_name: &str) -> Self
pub fn from_apidoc(raw: &str, entry_name: &str) -> Self
apidoc からの型を作成
Sourcepub fn from_bindings(raw: &str) -> Self
pub fn from_bindings(raw: &str) -> Self
bindings.rs からの型を作成
Sourcepub fn raw_string(&self) -> Option<&str>
pub fn raw_string(&self) -> Option<&str>
元の文字列表現を取得
Trait Implementations§
Source§impl Clone for SourcedType
impl Clone for SourcedType
Source§fn clone(&self) -> SourcedType
fn clone(&self) -> SourcedType
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 SourcedType
impl RefUnwindSafe for SourcedType
impl Send for SourcedType
impl Sync for SourcedType
impl Unpin for SourcedType
impl UnsafeUnpin for SourcedType
impl UnwindSafe for SourcedType
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